diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2019-08-28 14:33:35 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2019-08-28 14:33:35 +0000 |
| commit | 3c1996a489423cae240e38f6c2b178dd1c4c354b (patch) | |
| tree | 215f0306db4810758f3fb9f66a712df4d0f5e26c | |
| parent | 80f9a38a7653f0632b9688b9f8717f62fdedef6a (diff) | |
| download | bcm5719-llvm-3c1996a489423cae240e38f6c2b178dd1c4c354b.tar.gz bcm5719-llvm-3c1996a489423cae240e38f6c2b178dd1c4c354b.zip | |
lld: Make a test not fail if "repro" is part of the build directory name
r268231 made it so that the name of the --reproduce archive
is no longer listed in the response file. Previously, with
"--reproduce repro.tar" the response file would contain
repro/home/.../llvm-build-dir/.../foo.o
but after that change it contained
home/.../llvm-build-dir/.../foo.o
instead. The test added for this in r268231 checked that
the response file doesn't contain the string "repro", but
if the build dir is named e.g. "llvm-build-repro" then the
test fails because of that.
Change the assert to check that "repro" doesn't exist at the
beginning of the line instead. I verified that the test
still fails with r268231 reverted.
The test technically still fails if someone builds llvm in a directory
'/repro' below the root directory. Don't do that :)
llvm-svn: 370211
| -rw-r--r-- | lld/test/ELF/reproduce.s | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/test/ELF/reproduce.s b/lld/test/ELF/reproduce.s index bfab2e87e80..463d604e970 100644 --- a/lld/test/ELF/reproduce.s +++ b/lld/test/ELF/reproduce.s @@ -13,7 +13,7 @@ # RUN: FileCheck %s --check-prefix=RSP < repro/response.txt # RSP: {{^}}--hash-style gnu{{$}} -# RSP-NOT: repro{{[/\\]}} +# RSP-NOT: {{^}}repro{{[/\\]}} # RSP-NEXT: {{[/\\]}}foo.o # RSP-NEXT: -o bar # RSP-NEXT: -shared |

