chiark / gitweb /
Test for specific exit code
[stgit] / t / t1001-branch-rename.sh
index dd121326417434b127fd5a265d429f10670494dc..d5d3aefeab699a1c6648cfb36d0b912c31f92b96 100755 (executable)
@@ -19,7 +19,7 @@ test_expect_success \
 
 test_expect_success \
     'Rename the current stgit branch' \
-    '! stg branch -r foo bar
+    'command_error stg branch -r foo bar
 '
 
 test_expect_success \