forked from OSchip/llvm-project
[compiler-rt][hwasan] Update register-dump-read.c test
Since d564cfb53c
moved
__hwasan_tag_mismatch4 this test has been reporting
a frame 0 of __hwasan_tag_mismatch_v2.
This failure can be seen on our bots:
https://lab.llvm.org/buildbot/#/builders/185/builds/170
Before the change:
#0 0xaaaaba100e40 in main <...>/register-dump-read.c:21:10
After the change:
#0 0xaaaab8494bec in __hwasan_tag_mismatch_v2 <...>/hwasan/hwasan_tag_mismatch_aarch64.S:147
#1 0xaaaab84b4df8 in main <..>/register-dump-read.c:14:10
Update the test to check for a main frame as either frame
0 or frame 1.
This commit is contained in:
parent
48e9602c40
commit
bb4f7b9166
|
@ -21,7 +21,8 @@ int main() {
|
|||
return x[16];
|
||||
|
||||
// CHECK: ERROR: HWAddressSanitizer:
|
||||
// CHECK: #0 {{.*}} in main {{.*}}register-dump-read.c:[[@LINE-3]]
|
||||
// First frame might be __hwasan_tag_mismatch<...> so main could be frame 0 or 1.
|
||||
// CHECK: #{{(0|1) .*}} in main {{.*}}register-dump-read.c:[[@LINE-4]]
|
||||
|
||||
// Developer note: FileCheck really doesn't like when you have a regex that
|
||||
// ends with a '}' character, e.g. the regex "[0-9]{10}" will fail, because
|
||||
|
|
Loading…
Reference in New Issue