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.
9 lines
223 B
Plaintext
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
|
|
|