Skip to content

Commit bacb534

Browse files
committed
tests: fix over-constrained ModuleName in skip-line-zero
In our bazel testing environment the ModuleName isn't as simple as it is with cmake, so relax the constraint in this test from 0886440.
1 parent 0759508 commit bacb534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/test/tools/llvm-symbolizer/skip-line-zero.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
## Check to ensure that '--skip-line-zero' with '--output-style=JSON' displays approximate flag in JSON output.
5656
# RUN: llvm-symbolizer --obj=%t.o -f=none --skip-line-zero --output-style=JSON 0x1717 | FileCheck --strict-whitespace --match-full-lines --check-prefix=JSON %s
5757

58-
# JSON:[{"Address":"0x1717","ModuleName":"{{.*}}{{[/|\]+}}test{{[/|\]+}}tools{{[/|\]+}}llvm-symbolizer{{[/|\]+}}Output{{[/|\]+}}skip-line-zero.s.tmp.o","Symbol":[{"Approximate":true,"Column":0,"Discriminator":0,"FileName":"main.c","FunctionName":"","Line":1,"StartAddress":"","StartFileName":"","StartLine":0}]}]
58+
# JSON:[{"Address":"0x1717","ModuleName":"{{.*}}{{[/|\]+}}skip-line-zero.s{{.*}}","Symbol":[{"Approximate":true,"Column":0,"Discriminator":0,"FileName":"main.c","FunctionName":"","Line":1,"StartAddress":"","StartFileName":"","StartLine":0}]}]
5959

6060
## main.c
6161
## __attribute__((section("def"))) int foo() { return 1234; }

0 commit comments

Comments
 (0)