1 # Test fail on device (rdar://99981102)
2 XFAIL: tvos && !tvossim
4 RUN: %cpp_compiler %S/NullDerefTest.cpp -o %t-NullDerefTest
6 RUN: not %run %t-NullDerefTest 2>&1 | FileCheck %s --check-prefix=NullDerefTest
7 RUN: not %run %t-NullDerefTest -close_fd_mask=3 2>&1 | FileCheck %s --check-prefix=NullDerefTest
8 NullDerefTest: ERROR: AddressSanitizer: {{SEGV|access-violation}} on unknown address
9 NullDerefTest: Test unit written to ./crash-
10 RUN: not %run %t-NullDerefTest -artifact_prefix=ZZZ 2>&1 | FileCheck %s --check-prefix=NullDerefTestPrefix
11 NullDerefTestPrefix: Test unit written to ZZZcrash-
12 RUN: not %run %t-NullDerefTest -artifact_prefix=ZZZ -exact_artifact_path=FOOBAR 2>&1 | FileCheck %s --check-prefix=NullDerefTestExactPath
13 NullDerefTestExactPath: Test unit written to FOOBAR