Fix test for Darwin: ASAN is calling abort by default on Darwin, which not detects as a crash

llvm-svn: 271323
This commit is contained in:
Mehdi Amini 2016-05-31 20:09:56 +00:00
parent a880146925
commit 42b0c352c1
1 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,10 @@
// Test dedup_token_length
// RUN: %clangxx -O0 %s -o %t
// RUN: env %tool_options='' not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK0
// RUN: env %tool_options='dedup_token_length=0' not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK0
// RUN: env %tool_options='dedup_token_length=1' not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK1
// RUN: env %tool_options='dedup_token_length=2' not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK2
// RUN: env %tool_options='dedup_token_length=3' not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK3
// RUN: env %tool_options='abort_on_error=0' not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK0
// RUN: env %tool_options='abort_on_error=0, dedup_token_length=0' not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK0
// RUN: env %tool_options='abort_on_error=0, dedup_token_length=1' not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK1
// RUN: env %tool_options='abort_on_error=0, dedup_token_length=2' not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK2
// RUN: env %tool_options='abort_on_error=0, dedup_token_length=3' not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK3
// REQUIRES: stable-runtime
// FIXME: implement SEGV handler in other sanitizers, not just asan.