Fossil SCM

Add test for NULL UUID argument handling.

andybradford 2015-08-05 06:42 UTC check-in-edit
Commit 5c9a0fa7cf212fa6b90d94ef2c43efa5e0c52ab6
1 file changed +6
--- test/amend.test
+++ test/amend.test
@@ -303,5 +303,11 @@
303303
set comment "interactive edited comment"
304304
fossil_maybe_answer "a\n$comment\n.\nw\nq\n" amend $UUID --edit-comment
305305
unset env(EDITOR)
306306
test-comment 5 $UUID $comment
307307
}
308
+
309
+########################################
310
+# Test: NULL UUID #
311
+########################################
312
+fossil amend {} -close
313
+test amend-null-uuid {$CODE && [string first "no such check-in" $RESULT] != -1}
308314
--- test/amend.test
+++ test/amend.test
@@ -303,5 +303,11 @@
303 set comment "interactive edited comment"
304 fossil_maybe_answer "a\n$comment\n.\nw\nq\n" amend $UUID --edit-comment
305 unset env(EDITOR)
306 test-comment 5 $UUID $comment
307 }
 
 
 
 
 
 
308
--- test/amend.test
+++ test/amend.test
@@ -303,5 +303,11 @@
303 set comment "interactive edited comment"
304 fossil_maybe_answer "a\n$comment\n.\nw\nq\n" amend $UUID --edit-comment
305 unset env(EDITOR)
306 test-comment 5 $UUID $comment
307 }
308
309 ########################################
310 # Test: NULL UUID #
311 ########################################
312 fossil amend {} -close
313 test amend-null-uuid {$CODE && [string first "no such check-in" $RESULT] != -1}
314

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button