Skip to content

Commit

Permalink
Fix asan-symbolize-bad-path.cpp on Darwin
Browse files Browse the repository at this point in the history
I accidentally made the CHECK line stricter when committing D65322.
While it happens to work for Linux and FreeBSD, it broke on Darwin.
This commit restores the previous behaviour.

llvm-svn: 370110
  • Loading branch information
arichardson committed Aug 27, 2019
1 parent b5aefed commit 79f3459
Showing 1 changed file with 2 additions and 1 deletion.
@@ -1,7 +1,8 @@
// Test that asan_symbolize does not hang when provided with an non-existing
// path.
// RUN: echo '#0 0xabcdabcd (%t/bad/path+0x1234)' | %asan_symbolize | FileCheck %s -check-prefix CHECK-BAD-FILE
// CHECK-BAD-FILE: #0 0xabcdabcd in ?? ??:0
// Note: can't check for "0xabcdabcd in ?? ??:0" since DarwinSymbolizer will print the file even if it doesn't exist.
// CHECK-BAD-FILE: #0 0xabcdabcd in
// CHECK-BAD-FILE-EMPTY:

// Also test that asan_symbolize doesn't assert on an invalid address with a valid file:
Expand Down

0 comments on commit 79f3459

Please sign in to comment.