forked from ocaml/dune
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: show crash when defining a context named "install" (ocaml#10472)
Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
- Loading branch information
1 parent
a93443f
commit c841615
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
test/blackbox-tests/test-cases/workspaces/custom-context-names.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
$ cat > dune-workspace << EOF | ||
> (lang dune 3.13) | ||
> (context default) | ||
> (context | ||
> (default | ||
> (name log))) | ||
> EOF | ||
|
||
$ dune build | ||
File "dune-workspace", line 5, characters 8-11: | ||
5 | (name log))) | ||
^^^ | ||
Error: "log" is an invalid context name. | ||
[1] | ||
|
||
$ cat > dune-workspace << EOF | ||
> (lang dune 3.13) | ||
> (context default) | ||
> (context | ||
> (default | ||
> (name install))) | ||
> EOF | ||
$ dune build 2>&1 | grep "must not crash" | ||
I must not crash. Uncertainty is the mind-killer. Exceptions are the | ||
|
||
|