Skip to content

Commit 6476177

Browse files
committed
Fix test
Signed-off-by: Olivier Nicole <[email protected]>
1 parent b575913 commit 6476177

File tree

11 files changed

+19
-17
lines changed

11 files changed

+19
-17
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
(library
2+
(name library1)
3+
(js_of_ocaml
4+
;; This will be ignored as the library is compiled once for every effect
5+
;; config and then the version needed by each individual executable is used
6+
(flags (:standard --effects=double-translation))))
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
This tests a js_of_ocaml config of linking the same library with different,
2+
incompatible `--effects` flags
3+
4+
$ dune build bin/bin1.bc.js bin/bin2.bc.js bin/bin3.bc.js
5+
$ node _build/default/bin/bin1.bc.js
6+
Hello bin1
7+
Hi library1
8+
$ node _build/default/bin/bin2.bc.js
9+
Hello bin2
10+
Hi library1
11+
$ node _build/default/bin/bin3.bc.js
12+
Hello bin3
13+
Hi library1

test/blackbox-tests/test-cases/jsoo/jsoo-config-erroneous.t/lib/dune

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)