Skip to content

Conversation

@tlively
Copy link
Member

@tlively tlively commented Apr 15, 2024

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.

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.
@tlively tlively requested a review from kripken April 15, 2024 05:37
Copy link
Member Author

tlively commented Apr 15, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tlively and the rest of your teammates on Graphite Graphite

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL %t is a magic prefix...

@tlively tlively merged commit 75993de into main Apr 16, 2024
@tlively tlively deleted the no-test-pollution branch April 16, 2024 08:07
@gkdn gkdn mentioned this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Updating lit tests leaves file in source tree

3 participants