Test for specific exit code
[stgit] / t / t1501-sink.sh
index 6af45fe..ac9e25d 100755 (executable)
@@ -17,7 +17,7 @@ test_expect_success 'Initialize StGit stack' '
 '
 
 test_expect_success 'sink without applied patches' '
-    ! stg sink
+    command_error stg sink
 '
 
 test_expect_success 'sink a specific patch without applied patches' '