Skip to content

Commit

Permalink
Add reproduction case for 2033
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Apr 9, 2019
1 parent 7388c24 commit 5ac44ec
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/blackbox-tests/dune.inc
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,14 @@
test-cases/github20
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))

(alias
(name github2033)
(deps (package dune) (source_tree test-cases/github2033))
(action
(chdir
test-cases/github2033
(progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected)))))

(alias
(name github24)
(deps (package dune) (source_tree test-cases/github24))
Expand Down Expand Up @@ -1443,6 +1451,7 @@
(alias github1856)
(alias github1946)
(alias github20)
(alias github2033)
(alias github24)
(alias github25)
(alias github534)
Expand Down Expand Up @@ -1606,6 +1615,7 @@
(alias github1856)
(alias github1946)
(alias github20)
(alias github2033)
(alias github24)
(alias github25)
(alias github534)
Expand Down
3 changes: 3 additions & 0 deletions test/blackbox-tests/test-cases/github2033/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(library
(name hello_world)
(c_names file.xx))
Empty file.
10 changes: 10 additions & 0 deletions test/blackbox-tests/test-cases/github2033/run.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
. should be allowed in c names
$ dune build
Info: creating file dune-project with this contents:
| (lang dune 1.9)

File "dune", line 3, characters 10-17:
3 | (c_names file.xx))
^^^^^^^
Error: file.xx does not exist as a C source. file.xx.c must be present
[1]

0 comments on commit 5ac44ec

Please sign in to comment.