diff options
author | Thomas Lively <tlively@google.com> | 2024-04-16 01:07:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 01:07:07 -0700 |
commit | 75993de411117e79c57a09d1276bd1b2773c94df (patch) | |
tree | c017132e4e4cabbf3cd990cd503d117f3a003fa9 /test/lit/debug | |
parent | 25298be007d8816e40f7f73845ed514eee590b25 (diff) | |
download | binaryen-75993de411117e79c57a09d1276bd1b2773c94df.tar.gz binaryen-75993de411117e79c57a09d1276bd1b2773c94df.tar.bz2 binaryen-75993de411117e79c57a09d1276bd1b2773c94df.zip |
[NFC] Fix tests that were polluting the test directory (#6498)
A few tests were creating files with the `%s` prefix, which expands to the test
filename itself, so the test files were being created in the test directory and
were never cleaned up. Another test was creating files called `%a.wast` and
`%b.wast`, but `%a` and `%b` do not expand to anything, so this also polluted
the test directory and caused problems with running other tests and fuzzing.
Use the proper `%t` prefix to create all these files in a temporary location
instead.
Fixes #6429.
Diffstat (limited to 'test/lit/debug')
-rw-r--r-- | test/lit/debug/source-map-stop.wast | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lit/debug/source-map-stop.wast b/test/lit/debug/source-map-stop.wast index 90bf739c1..d075d5686 100644 --- a/test/lit/debug/source-map-stop.wast +++ b/test/lit/debug/source-map-stop.wast @@ -1,7 +1,7 @@ ;; NOTE: Assertions have been generated by update_lit_checks.py and should not be edited. -;; RUN: wasm-opt %s -g -o %s.wasm -osm %s.wasm.map -;; RUN: wasm-opt %s.wasm -ism %s.wasm.map -S -o - | filecheck %s +;; RUN: wasm-opt %s -g -o %t.wasm -osm %t.wasm.map +;; RUN: wasm-opt %t.wasm -ism %t.wasm.map -S -o - | filecheck %s ;; Verify that writing to a source map and reading it back does not "smear" ;; debug info across adjacent instructions. The debug info in the output should |