Created
March 10, 2022 14:19
-
-
Save dariusf/78e40f07c62e04e2781d45c4cb6065e3 to your computer and use it in GitHub Desktop.
Reproduce bytecode test bug
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
(library | |
(name test) | |
(modules test) | |
(inline_tests (modes byte)) | |
(preprocess (pps ppx_expect))) |
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
(lang dune 2.9) |
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
all: | |
dune test --verbose |
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
let%expect_test "name" = | |
print_endline "hi"; | |
[%expect {| hi |}] |
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
dune test --verbose | |
Shared cache: disabled | |
Workspace root: /Users/darius/ocaml/dune-byte-test-repro | |
Auto-detected concurrency: 8 | |
Running[0]: /Users/darius/.opam/4.13.1/bin/ocamlc.opt -config > /var/folders/l6/290h50ys7t995mrks71zd9zc0000gn/T/dune_ae49c3_output | |
Dune context: | |
{ name = "default" | |
; kind = "default" | |
; profile = Dev | |
; merlin = true | |
; for_host = None | |
; fdo_target_exe = None | |
; build_dir = "default" | |
; toplevel_path = Some External "/Users/darius/.opam/4.13.1/lib/toplevel" | |
; ocaml_bin = External "/Users/darius/.opam/4.13.1/bin" | |
; ocaml = Ok External "/Users/darius/.opam/4.13.1/bin/ocaml" | |
; ocamlc = External "/Users/darius/.opam/4.13.1/bin/ocamlc.opt" | |
; ocamlopt = Ok External "/Users/darius/.opam/4.13.1/bin/ocamlopt.opt" | |
; ocamldep = Ok External "/Users/darius/.opam/4.13.1/bin/ocamldep.opt" | |
; ocamlmklib = Ok External "/Users/darius/.opam/4.13.1/bin/ocamlmklib.opt" | |
; env = | |
map | |
{ "DUNE_OCAML_HARDCODED" : "/Users/darius/.opam/4.13.1/lib" | |
; "DUNE_OCAML_STDLIB" : "/Users/darius/.opam/4.13.1/lib/ocaml" | |
; "DUNE_SOURCEROOT" : "/Users/darius/ocaml/dune-byte-test-repro" | |
; "INSIDE_DUNE" : | |
"/Users/darius/ocaml/dune-byte-test-repro/_build/default" | |
; "MANPATH" : | |
"/Users/darius/ocaml/dune-byte-test-repro/_build/install/default/bin" | |
; "OCAMLFIND_IGNORE_DUPS_IN" : | |
"/Users/darius/ocaml/dune-byte-test-repro/_build/install/default/lib" | |
; "OCAMLPATH" : | |
"/Users/darius/ocaml/dune-byte-test-repro/_build/install/default/lib" | |
; "OCAMLTOP_INCLUDE_PATH" : | |
"/Users/darius/ocaml/dune-byte-test-repro/_build/install/default/lib/toplevel" | |
} | |
; findlib_path = [ External "/Users/darius/.opam/4.13.1/lib" ] | |
; arch_sixtyfour = true | |
; natdynlink_supported = true | |
; supports_shared_libraries = true | |
; ocaml_config = | |
{ version = "4.13.1" | |
; standard_library_default = "/Users/darius/.opam/4.13.1/lib/ocaml" | |
; standard_library = "/Users/darius/.opam/4.13.1/lib/ocaml" | |
; standard_runtime = "the_standard_runtime_variable_was_deleted" | |
; ccomp_type = "cc" | |
; c_compiler = "cc" | |
; ocamlc_cflags = | |
[ "-O2"; "-fno-strict-aliasing"; "-fwrapv"; "-pthread" ] | |
; ocamlc_cppflags = [ "-D_FILE_OFFSET_BITS=64" ] | |
; ocamlopt_cflags = | |
[ "-O2"; "-fno-strict-aliasing"; "-fwrapv"; "-pthread" ] | |
; ocamlopt_cppflags = [ "-D_FILE_OFFSET_BITS=64" ] | |
; bytecomp_c_compiler = | |
[ "cc" | |
; "-O2" | |
; "-fno-strict-aliasing" | |
; "-fwrapv" | |
; "-pthread" | |
; "-D_FILE_OFFSET_BITS=64" | |
] | |
; bytecomp_c_libraries = [ "-lm"; "-lpthread" ] | |
; native_c_compiler = | |
[ "cc" | |
; "-O2" | |
; "-fno-strict-aliasing" | |
; "-fwrapv" | |
; "-pthread" | |
; "-D_FILE_OFFSET_BITS=64" | |
] | |
; native_c_libraries = [ "-lm" ] | |
; native_pack_linker = [ "ld"; "-r"; "-o" ] | |
; cc_profile = [] | |
; architecture = "amd64" | |
; model = "default" | |
; int_size = 63 | |
; word_size = 64 | |
; system = "macosx" | |
; asm = [ "cc"; "-c"; "-Wno-trigraphs" ] | |
; asm_cfi_supported = true | |
; with_frame_pointers = false | |
; ext_exe = "" | |
; ext_obj = ".o" | |
; ext_asm = ".s" | |
; ext_lib = ".a" | |
; ext_dll = ".so" | |
; os_type = "Unix" | |
; default_executable_name = "a.out" | |
; systhread_supported = true | |
; host = "x86_64-apple-darwin20.6.0" | |
; target = "x86_64-apple-darwin20.6.0" | |
; profiling = false | |
; flambda = false | |
; spacetime = false | |
; safe_string = true | |
; exec_magic_number = "Caml1999X030" | |
; cmi_magic_number = "Caml1999I030" | |
; cmo_magic_number = "Caml1999O030" | |
; cma_magic_number = "Caml1999A030" | |
; cmx_magic_number = "Caml1999Y030" | |
; cmxa_magic_number = "Caml1999Z030" | |
; ast_impl_magic_number = "Caml1999M030" | |
; ast_intf_magic_number = "Caml1999N030" | |
; cmxs_magic_number = "Caml1999D030" | |
; cmt_magic_number = "Caml1999T030" | |
; natdynlink_supported = true | |
; supports_shared_libraries = true | |
; windows_unicode = false | |
} | |
} | |
Running[1]: (cd _build/default && .test.inline-tests/inline_test_runner_test.bc inline-test-runner test -source-tree-root . -diff-cmd -) | |
File "dune", line 4, characters 1-28: | |
4 | (inline_tests (modes byte)) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
Command [1] exited with code 1: | |
$ (cd _build/default && .test.inline-tests/inline_test_runner_test.bc inline-test-runner test -source-tree-root . -diff-cmd -) | |
You are doing something unexpected with the tests. No tests have | |
been run. You should use the inline_tests_runner script to run | |
tests. | |
make: *** [all] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment