forked from OSchip/llvm-project
Ok, now I know why I kept getting confused and not making progress
fixing tis test. There are different configurations running, and they have subtly different backtraces. I didn't notice that the configs changed and so I kept occilating between the two. Now I've looked at two different configs at the same time, and so this should be much more likely to work. llvm-svn: 271786
This commit is contained in:
parent
9ef4243824
commit
b330dcab19
|
@ -20,7 +20,13 @@ int main() {
|
|||
// CHECK: {{#0 .* main .*}}intercept_strdup.cc:[[@LINE-3]]
|
||||
// CHECK: [[ADDR]] is located 1 bytes to the left of 6-byte region
|
||||
// CHECK: allocated by thread T0 here:
|
||||
// CHECK: #0 {{.*}} in __asan_wrap_strdup
|
||||
// CHECK: #1 {{.*}} in main {{.*}}intercept_strdup.cc:[[@LINE-15]]
|
||||
//
|
||||
// The first frame is our wrapper normally but will be malloc in the dynamic
|
||||
// config.
|
||||
// CHECK: #0 {{.*}} in {{malloc|__asan_wrap_strdup}}
|
||||
//
|
||||
// The local call to _strdup above may be the second or third frame depending
|
||||
// on whether we're using the dynamic config.
|
||||
// CHECK: #{{[12]}} {{.*}} in main {{.*}}intercept_strdup.cc:[[@LINE-21]
|
||||
free(ptr);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue