Fossil SCM
Add test for NULL UUID argument handling.
Commit
5c9a0fa7cf212fa6b90d94ef2c43efa5e0c52ab6
Parent
ac3ccc4e72f17cc…
1 file changed
+6
+6
| --- test/amend.test | ||
| +++ test/amend.test | ||
| @@ -303,5 +303,11 @@ | ||
| 303 | 303 | set comment "interactive edited comment" |
| 304 | 304 | fossil_maybe_answer "a\n$comment\n.\nw\nq\n" amend $UUID --edit-comment |
| 305 | 305 | unset env(EDITOR) |
| 306 | 306 | test-comment 5 $UUID $comment |
| 307 | 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} | |
| 308 | 314 |
| --- 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 |