Skip to content

Commit 729a1c8

Browse files
committed
[test] Split an OSX-specific invocation to its own file and make sure to use the mock SDK for a sourcekit test.
rdar://24263618
1 parent a9339ba commit 729a1c8

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

test/IDE/print_clang_header.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,3 @@
2323
// Test header interface printing from a clang module, with the preprocessing record enabled by the CC args.
2424
// RUN: %target-swift-ide-test -source-filename %s -print-header -header-to-print %S/Inputs/print_clang_header/header-to-print.h -print-regular-comments --cc-args %target-cc-options -isysroot %clang-importer-sdk-path -fsyntax-only %t.framework.m -F %t -ivfsoverlay %t.yaml -Xclang -detailed-preprocessing-record > %t.module2.txt
2525
// RUN: diff -u %S/Inputs/print_clang_header/header-to-print.h.module.printed.txt %t.module2.txt
26-
27-
// RUN: echo '#include "header-to-print.h"' > %t.i386.m
28-
// RUN: %target-swift-ide-test -source-filename %s -print-header -header-to-print %S/Inputs/print_clang_header/header-to-print.h -print-regular-comments --cc-args -arch i386 -isysroot %clang-importer-sdk-path -fsyntax-only %t.i386.m -I %S/Inputs/print_clang_header > %t.i386.txt
29-
// RUN: diff -u %S/Inputs/print_clang_header/header-to-print.h.printed.txt %t.i386.txt
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// REQUIRES: OS=macosx
2+
// FIXME: rdar://problem/19648117 Needs splitting objc parts out
3+
// XFAIL: linux
4+
5+
// RUN: echo '#include "header-to-print.h"' > %t.i386.m
6+
// RUN: %target-swift-ide-test -source-filename %s -print-header -header-to-print %S/Inputs/print_clang_header/header-to-print.h -print-regular-comments --cc-args -arch i386 -isysroot %clang-importer-sdk-path -fsyntax-only %t.i386.m -I %S/Inputs/print_clang_header > %t.i386.txt
7+
// RUN: diff -u %S/Inputs/print_clang_header/header-to-print.h.printed.txt %t.i386.txt

test/SourceKit/InterfaceGen/gen_swift_source.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %sourcekitd-test -req=interface-gen %S/Inputs/Foo2.swift -- %S/Inputs/Foo2.swift > %t.response
1+
// RUN: %sourcekitd-test -req=interface-gen %S/Inputs/Foo2.swift -- %S/Inputs/Foo2.swift %mcp_opt %clang-importer-sdk > %t.response
22
// RUN: diff -u %s.response %t.response
33

4-
// RUN: %sourcekitd-test -req=interface-gen-open %S/Inputs/Foo2.swift -- %S/Inputs/Foo2.swift \
4+
// RUN: %sourcekitd-test -req=interface-gen-open %S/Inputs/Foo2.swift -- %S/Inputs/Foo2.swift %mcp_opt %clang-importer-sdk \
55
// RUN: == -req=cursor -pos=18:49 | FileCheck -check-prefix=CHECK1 %s
66
// The cursor points to 'FooOverlayClassBase' inside the list of base classes, see 'gen_swift_source.swift.response'
77

test/SourceKit/SourceDocInfo/rdar_18677108-1.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// RUN: %sourcekitd-test -req=cursor -pos=7:5 %s -- %s | FileCheck %s
33
// CHECK: <empty cursor info>
44

5-
import Foundation
6-
75
class CameraViewController
86
{
97
lazy var cameraController : CameraController = CameraController(delegate: self)

0 commit comments

Comments
 (0)