|
9 | 9 | ; RUN: -install_name /System/Library/Frameworks/Availability.framework/Versions/A/Availability \
|
10 | 10 | ; RUN: -current_version 1 -compatibility_version 1 \
|
11 | 11 | ; RUN: -F %t/System/Library/Frameworks \
|
12 |
| -; RUN: %t/inputs.json -o output.tbd \ |
| 12 | +; RUN: %t/inputs.json -o %t/output.tbd \ |
13 | 13 | ; RUN: --verify-against=%t/System/Library/Frameworks/Availability.framework/Availability \
|
14 |
| -; RUN: --verify-mode=ErrorsOnly --filetype=tbd-v5 2>&1 | FileCheck -allow-empty -check-prefix=ERRORSONLY %s |
| 14 | +; RUN: --verify-mode=ErrorsOnly --filetype=tbd-v5 2> %t/errors.log |
| 15 | +; RUN: FileCheck -allow-empty -check-prefix=ERRORSONLY -input-file %t/errors.log %s |
15 | 16 |
|
16 | 17 | ; RUN: clang-installapi \
|
17 | 18 | ; RUN: --target=x86_64-apple-macos13 \
|
18 | 19 | ; RUN: -install_name /System/Library/Frameworks/Availability.framework/Versions/A/Availability \
|
19 | 20 | ; RUN: -current_version 1 -compatibility_version 1 \
|
20 | 21 | ; RUN: -F %t/System/Library/Frameworks \
|
21 |
| -; RUN: %t/inputs.json -o output-warnings.tbd \ |
| 22 | +; RUN: %t/inputs.json -o %t/output-warnings.tbd \ |
22 | 23 | ; RUN: --verify-against=%t/System/Library/Frameworks/Availability.framework/Availability \
|
23 |
| -; RUN: --verify-mode=ErrorsAndWarnings 2>&1 | FileCheck -check-prefixes=VIOLATIONS,ERRORSANDWARNINGS %s |
| 24 | +; RUN: --verify-mode=ErrorsAndWarnings 2> %t/errors.log |
| 25 | +; RUN: FileCheck -check-prefixes=VIOLATIONS,ERRORSANDWARNINGS -input-file %t/errors.log %s |
24 | 26 |
|
25 | 27 | ; RUN: not clang-installapi \
|
26 | 28 | ; RUN: --target=x86_64-apple-macos13 \
|
27 | 29 | ; RUN: -install_name /System/Library/Frameworks/Availability.framework/Versions/A/Availability \
|
28 | 30 | ; RUN: -current_version 1 -compatibility_version 1 \
|
29 | 31 | ; RUN: -F %t/System/Library/Frameworks \
|
30 |
| -; RUN: %t/inputs.json -o output-pedantic.tbd \ |
| 32 | +; RUN: %t/inputs.json -o %t/output-pedantic.tbd \ |
31 | 33 | ; RUN: --verify-against=%t/System/Library/Frameworks/Availability.framework/Availability \
|
32 |
| -; RUN: --verify-mode=Pedantic 2>&1 | FileCheck -check-prefixes=VIOLATIONS,PEDANTIC %s |
| 34 | +; RUN: --verify-mode=Pedantic 2> %t/errors.log |
| 35 | +; RUN: FileCheck -check-prefixes=VIOLATIONS,PEDANTIC -input-file %t/errors.log %s |
33 | 36 |
|
34 | 37 | ; ERRORSONLY-NOT: error
|
35 | 38 | ; ERRORSONLY-NOT: warning
|
|
40 | 43 | ; VIOLATIONS-NEXT: extern int publicGlobalVariable NS_AVAILABLE
|
41 | 44 | ; VIOLATIONS: declaration 'Foo' is marked unavailable, but symbol is exported in dynamic library
|
42 | 45 | ; VIOLATIONS-NEXT: @interface Foo : NSObject
|
| 46 | +; VIOLATIONS: declaration 'publicGlobalVariable3' is marked unavailable, but symbol is exported in dynamic library |
| 47 | +; VIOLATIONS-NEXT: extern int publicGlobalVariable3 __attribute__((unavailable)) |
43 | 48 | ; VIOLATIONS: declaration 'privateGlobalVariable' is marked unavailable, but symbol is exported in dynamic library
|
44 | 49 | ; VIOLATIONS-NEXT: extern int privateGlobalVariable;
|
45 | 50 |
|
|
0 commit comments