refuse a second input file
It was never read, and nothing said so.
This commit is contained in:
@@ -77,6 +77,18 @@
|
||||
(and (zero? (car run)) (substring-index "main" (cadr run)) #t)))
|
||||
(change-directory scratch)
|
||||
|
||||
;;; the second was never read, and nothing said so
|
||||
(test-assert "a second input is refused"
|
||||
(let ((run (sexc-run #f hello hello "-C" "-o" "-")))
|
||||
(and (not (zero? (car run)))
|
||||
(substring-index "one input file at a time" (caddr run))
|
||||
#t)))
|
||||
(test-assert "stdin besides a file too"
|
||||
(let ((run (sexc-run hello-source "-" hello "-C" "-o" "-")))
|
||||
(and (not (zero? (car run)))
|
||||
(substring-index "one input file at a time" (caddr run))
|
||||
#t)))
|
||||
|
||||
(test "-o - is refused for an executable" #f
|
||||
(sexc-succeeds? hello "-o" "-"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user