From 75993de411117e79c57a09d1276bd1b2773c94df Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Tue, 16 Apr 2024 01:07:07 -0700 Subject: [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. --- test/lit/debug/source-map-stop.wast | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/lit/debug/source-map-stop.wast') 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 -- cgit v1.2.3