Skip to content

Commit 3459242

Browse files
committed
[interop] fix the libc++ & foundation symbolic interface test on CI by splitting it into two to avoid SDK dependency for one of them
1 parent b4c38ae commit 3459242

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// RUN: %empty-directory(%t)
2+
// RUN: split-file %s %t
3+
4+
// RUN: %target-swift-frontend %t/test.swift -I %t -c -index-system-modules -index-store-path %t/store -enable-experimental-cxx-interop
5+
// RUN: ls %t/store/interfaces | %FileCheck --check-prefix=FILES %s
6+
7+
// REQUIRES: OS=macosx
8+
// REQUIRES: cxx-interop-fixed-cf_options
9+
10+
//--- test.swift
11+
12+
import CxxStdlib
13+
import Foundation
14+
15+
// FILES: std-{{.*}}.pcm.symbolicswiftinterface
16+
// FILES-NOT: Foundation*

test/Interop/Cxx/symbolic-imports/indexing-emit-libcxx-symbolic-module-interface.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ int freeFunction(int x, int y);
2828

2929
import CxxStdlib
3030
import CxxModule
31-
import Foundation
3231

3332
// REMARK_NEW: remark: emitting symbolic interface at {{.*}}/interfaces/std-{{.*}}.pcm.symbolicswiftinterface{{$}}
3433
// REMARK_NEW: remark: emitting symbolic interface at {{.*}}/interfaces/CxxModule-{{.*}}.pcm.symbolicswiftinterface{{$}}
@@ -38,6 +37,5 @@ import Foundation
3837

3938
// FILES: CxxModule-{{.*}}.pcm.symbolicswiftinterface
4039
// FILES: std-{{.*}}.pcm.symbolicswiftinterface
41-
// FILES-NOT: Foundation*
4240

4341
// CHECK: // Swift interface for system module 'std'

0 commit comments

Comments
 (0)