Skip to content

Commit 8dd5742

Browse files
committed
Fix aarch64-ptrauth.c to avoid writing to cwd which might not be writeable
Some of the tests seem to test beyond the driver (& check a warning coming from the frontend) and should probably be split into separate tests.
1 parent 38f2f95 commit 8dd5742

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/test/Driver/aarch64-ptrauth.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@
4949
// ERR1-NEXT: error: unsupported option '-fptrauth-init-fini' for target '{{.*}}'
5050

5151
//// Only support PAuth ABI for Linux as for now.
52-
// RUN: not %clang -c --target=aarch64-unknown -mabi=pauthtest %s 2>&1 | FileCheck %s --check-prefix=ERR2
53-
// RUN: not %clang -c --target=aarch64-unknown-pauthtest %s 2>&1 | FileCheck %s --check-prefix=ERR2
52+
// RUN: not %clang -o /dev/null -c --target=aarch64-unknown -mabi=pauthtest %s 2>&1 | FileCheck %s --check-prefix=ERR2
53+
// RUN: not %clang -o /dev/null -c --target=aarch64-unknown-pauthtest %s 2>&1 | FileCheck %s --check-prefix=ERR2
5454
// ERR2: error: ABI 'pauthtest' is not supported for 'aarch64-unknown-unknown-pauthtest'
5555

5656
//// PAuth ABI is encoded as environment part of the triple, so don't allow to explicitly set other environments.
57-
// RUN: not %clang -c --target=aarch64-linux-gnu -mabi=pauthtest %s 2>&1 | FileCheck %s --check-prefix=ERR3
57+
// RUN: not %clang -### -c --target=aarch64-linux-gnu -mabi=pauthtest %s 2>&1 | FileCheck %s --check-prefix=ERR3
5858
// ERR3: error: unsupported option '-mabi=pauthtest' for target 'aarch64-unknown-linux-gnu'
59-
// RUN: %clang -c --target=aarch64-linux-pauthtest -mabi=pauthtest %s
59+
// RUN: %clang -### -c --target=aarch64-linux-pauthtest -mabi=pauthtest %s
6060

6161
//// The only branch protection option compatible with PAuthABI is BTI.
6262
// RUN: not %clang -### -c --target=aarch64-linux -mabi=pauthtest -mbranch-protection=pac-ret %s 2>&1 | \

0 commit comments

Comments
 (0)