Skip to content

Commit

Permalink
disable locations in snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
ospencer committed May 4, 2024
1 parent 4dac36e commit 92e6423
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/test/runner.re
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ let makeSnapshotRunner =
(~config_fn=?, test, ~module_header=module_header, name, prog) => {
test(name, ({expect}) => {
Config.preserve_all_configs(() => {
Config.sexp_locs_enabled := false;
ignore @@
compile(
~hook=stop_after_object_emitted,
Expand Down Expand Up @@ -247,6 +248,7 @@ let makeFilesizeRunner =
let makeSnapshotFileRunner = (test, ~config_fn=?, name, filename) => {
test(name, ({expect}) => {
Config.preserve_all_configs(() => {
Config.sexp_locs_enabled := false;
let infile = grainfile(filename);
let outfile = wasmfile(name);
ignore @@
Expand Down

0 comments on commit 92e6423

Please sign in to comment.