Add a test showing a weird quoting problem (#699)

This commit is contained in:
Jérémie Dimino 2018-04-12 13:02:41 +01:00 committed by GitHub
parent 7a3917b9e3
commit db41c3549b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 0 deletions

View File

@ -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))))))

View File

@ -0,0 +1,3 @@
(rule
((targets (x y))
(action (with-stdout-to ${@} (echo foo)))))

View File

@ -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]