Skip to content

Commit

Permalink
Add test (we think / hope this will fail in CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccasin committed May 22, 2023
1 parent 848aca6 commit 451a805
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ocaml/testsuite/tests/tool-toplevel/any.compilers.reference
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Exception: Assert_failure ("//toplevel//", 9, 0).
Called from Stdlib__Fun.protect in file "fun.ml", line 37, characters 8-15
Re-raised at Stdlib__Fun.protect in file "fun.ml", line 42, characters 6-52
Called from Topeval.load_lambda in file "ocaml/toplevel/byte/topeval.ml", line 90, characters 4-150

9 changes: 9 additions & 0 deletions ocaml/testsuite/tests/tool-toplevel/any.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(* TEST
exit_status = "2"
* toplevel
* toplevel.opt
reference = "${test_source_directory}/any.native.reference"
*)

(* This checks that things with layout "any" don't cause problems in [Tstr_eval] *)
assert false;;
2 changes: 2 additions & 0 deletions ocaml/testsuite/tests/tool-toplevel/any.native.reference
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Exception: Assert_failure ("//toplevel//", 9, 0).

0 comments on commit 451a805

Please sign in to comment.