Add a test showing a weird quoting problem (#699)
This commit is contained in:
parent
7a3917b9e3
commit
db41c3549b
|
@ -469,3 +469,14 @@
|
|||
(progn
|
||||
(run ${exe:cram.exe} run.t)
|
||||
(diff? run.t run.t.corrected))))))
|
||||
|
||||
(alias
|
||||
((name runtest)
|
||||
(deps ((package jbuilder)
|
||||
(files_recursively_in test-cases/quoting)))
|
||||
(action
|
||||
(chdir test-cases/quoting
|
||||
(progn
|
||||
(run ${exe:cram.exe} run.t)
|
||||
(diff? run.t run.t.corrected))))))
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
(rule
|
||||
((targets (x y))
|
||||
(action (with-stdout-to ${@} (echo foo)))))
|
|
@ -0,0 +1,9 @@
|
|||
This behavior is surprising, we should get an error about the fact
|
||||
that ${@} is not quoted and doesn't contain exactly 1 element
|
||||
|
||||
$ jbuilder build x
|
||||
Error: Rule failed to generate the following targets:
|
||||
- x
|
||||
- y
|
||||
[1]
|
||||
|
Loading…
Reference in New Issue