Updated to match new output; also had to remove "close STDERR;" to get working.
Ken Youens-Clark [Fri, 27 Feb 2004 18:37:34 +0000 (18:37 +0000)]
t/30sqlt-diff.t

index 8a6929b..4cba646 100644 (file)
@@ -23,12 +23,13 @@ my $create2 = (-d "t")
     ? catfile($Bin, @create2)
     : catfile($Bin, "t", @create2);
 
-plan tests => 2;
+plan tests => 3;
 
-ok(-e $sqlt_diff); 
+ok(-e $sqlt_diff, 'Found sqlt-diff script'); 
 my @cmd = ($sqlt_diff, "$create1=SQLite", "$create2=SQLite");
 
-close STDERR;
 my $out = `@cmd`;
 
-like($out, qr/ is missing field/, "Detected missing field 'lemon'");
+like($out, qr/ALTER TABLE person CHANGE iq/, "Detected altered 'iq' field");
+like($out, qr/ALTER TABLE person ADD is_rock_star/, 
+    "Detected missing rock star field");