Henrik G. Olsson 82ef4ee725
[Utils] Ensure that empty.txt is always empty (#157576)
Previously this test case would `touch %S/empty.txt` to create and empty
file. The test case then copies contents to that file, so if run a
second time the `touch` command would not create an empty file.

`llvm/utils/lit/tests/diff-test-update.py` also no longer matches against file
paths other than the final bit of the file name. This prevents test failures
on Windows due to different path separators.
2025-09-09 00:12:27 +00:00

9 lines
223 B
Plaintext

# RUN: mkdir %t
# Tests that if file A is in the %t directory and file B is not,
# the diff test updater copies from file A to B.
# RUN: echo "" > %S/empty.txt
# RUN: cp %S/1.in %t/1.txt
# RUN: diff %t/1.txt %S/empty.txt