[ASan] Fix test cases: don't assume that fast unwinder can't unwind through libc.

llvm-svn: 227265
This commit is contained in:
Alexey Samsonov 2015-01-27 23:06:48 +00:00
parent 9ec188db33
commit 605f2df106
2 changed files with 3 additions and 8 deletions

View File

@ -39,15 +39,12 @@ int main() {
return GlobalPtr[10];
}
// Fast unwind: can not unwind through qsort.
// FIXME: this test does not properly work with slow unwind yet.
// Fast unwind may not unwind through qsort.
// CHECK-FAST: ERROR: AddressSanitizer: heap-buffer-overflow
// CHECK-FAST: is located 0 bytes to the right
// CHECK-FAST: #0{{.*}}operator new
// CHECK-FAST-NEXT: #1{{.*}}QsortCallback
// CHECK-FAST-NOT: MyQsort
//
// CHECK-SLOW: ERROR: AddressSanitizer: heap-buffer-overflow
// CHECK-SLOW: is located 0 bytes to the right
// CHECK-SLOW: #0{{.*}}operator new

View File

@ -37,11 +37,9 @@ int main() {
MyQsort(a, 2);
}
// Fast unwind: can not unwind through qsort.
// Fast unwind may not unwind through qsort.
// CHECK-FAST: ERROR: AddressSanitizer: global-buffer-overflow
// CHECK-FAST: #0{{.*}} in QsortCallback
// CHECK-FAST-NOT: MyQsort
// CHECK-FAST: is located 0 bytes to the right of global variable 'global_array
// CHECK-SLOW: ERROR: AddressSanitizer: global-buffer-overflow