-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Cross compilation setup causes dune to crash Signed-off-by: Rudi Grinberg <[email protected]>
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
test/blackbox-tests/test-cases/custom-cross-compilation/github6843.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,29 @@ | ||
Reproduce #6843 | ||
|
||
Cross compilation setup that causes dune to crash | ||
|
||
$ cat >dune-workspace <<EOF | ||
> (lang dune 3.6) | ||
> (context (default)) | ||
> (context | ||
> (default | ||
> (name esperanto) | ||
> (host default))) | ||
> EOF | ||
|
||
$ cat >dune-project <<EOF | ||
> (lang dune 3.6) | ||
> EOF | ||
$ cat >dune <<EOF | ||
> (executable (name cat)) | ||
> EOF | ||
|
||
$ export OCAMLFIND_CONF=$PWD/etc/findlib.conf | ||
$ mkdir -p etc/findlib.conf.d | ||
$ touch etc/findlib.conf etc/findlib.conf.d/esperanto.conf | ||
$ dune build -x esperanto ./cat.exe 2>&1 | awk '/I must not/,/Only I will remain/' | ||
I must not crash. Uncertainty is the mind-killer. Exceptions are the | ||
little-death that brings total obliteration. I will fully express my cases. | ||
Execution will pass over me and through me. And when it has gone past, I | ||
will unwind the stack along its path. Where the cases are handled there will | ||
be nothing. Only I will remain. |