]> diplodocus.org Git - nmh/blobdiff - test/pick/test-stderr
Fixed a few very minor issues that cppcheck noticed.
[nmh] / test / pick / test-stderr
index e45e13d27f66fb5b17661a2987fc1021c999eb92..9c1dac3d22c5f26be1225dd9391f7231ad6f8a69 100755 (executable)
@@ -28,6 +28,6 @@ EOF
 # Nothing should to go stdout.
 cat /dev/null > $expected_out
 
-pick -a > $actual_out 2> $actual_err
-diff -u $expected_err $actual_err || exit 1
-diff -u $expected_out $actual_out || exit 1
+run_prog pick -a > $actual_out 2> $actual_err
+check "$expected_err" "$actual_err"
+check "$expected_out" "$actual_out"