Skip to content

Commit 60deb8b

Browse files
committed
[InstallAPI][test] Tweak test to run on older CI config
1 parent 0dbd804 commit 60deb8b

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

clang/test/InstallAPI/diagnostics-dsym.test

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
; RUN: split-file %s %t
55

66
// Build a simple dylib with debug info.
7-
; RUN: %clang --target=arm64-apple-macos13 -g -dynamiclib %t/foo.c \
7+
; RUN: %clang --target=x86_64-apple-macos10.15 -g -dynamiclib %t/foo.c \
88
; RUN: -current_version 1 -compatibility_version 1 -L%t/usr/lib \
99
; RUN: -save-temps \
1010
; RUN: -o %t/foo.dylib -install_name %t/foo.dylib
1111
; RUN: dsymutil %t/foo.dylib -o %t/foo.dSYM
1212

13-
; RUN: not clang-installapi -x c++ --target=arm64-apple-macos13 \
13+
; RUN: not clang-installapi -x c++ --target=x86_64-apple-macos10.15 \
1414
; RUN: -install_name %t/foo.dylib \
1515
; RUN: -current_version 1 -compatibility_version 1 \
1616
; RUN: -o %t/output.tbd \
1717
; RUN: --verify-against=%t/foo.dylib --dsym=%t/foo.dSYM \
1818
; RUN: --verify-mode=Pedantic 2>&1 | FileCheck %s
1919

20-
; CHECK: violations found for arm64
20+
; CHECK: violations found for x86_64
2121
; CHECK: foo.c:5:0: error: no declaration found for exported symbol 'bar' in dynamic library
2222
; CHECK: foo.c:1:0: error: no declaration found for exported symbol 'foo' in dynamic library
2323

@@ -29,15 +29,11 @@ extern char bar;
2929
char bar = 'a';
3030

3131
;--- usr/lib/libSystem.tbd
32-
{
33-
"main_library": {
34-
"install_names": [
35-
{"name": "/usr/lib/libSystem.B.dylib"}
36-
],
37-
"target_info": [
38-
{"target": "arm64-macos"}
39-
]
40-
},
41-
"tapi_tbd_version": 5
42-
}
43-
32+
--- !tapi-tbd
33+
tbd-version: 4
34+
targets: [ x86_64-macos ]
35+
install-name: '/usr/lib/libSystem.B.dylib'
36+
exports:
37+
- targets: [ x86_64-macos ]
38+
symbols: [ dyld_stub_binder ]
39+
...

0 commit comments

Comments
 (0)