Skip to content

Commit 4a4b5cf

Browse files
committed
[test] Remove -enable-source-import from two very old JIT tests
Ah, the pre-Swift-1 days... -enable-source-import may come back in some form some day, but it's not supported now.
1 parent c05238a commit 4a4b5cf

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

test/Interpreter/fractal.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-jit-run %s -I %S -enable-source-import | %FileCheck %s
3-
// REQUIRES: executable_test
2+
// RUN: %target-build-swift -emit-library -o %t/libcomplex.%target-dylib-extension -emit-module %S/complex.swift -module-link-name complex
3+
// RUN: %target-jit-run %s -I %t -L %t | %FileCheck %s
44

5-
// REQUIRES: swift_interpreter
5+
// RUN: grep -v import %s > %t/main.swift
6+
// RUN: %target-jit-run %t/main.swift %S/complex.swift | %FileCheck %s
67

7-
// FIXME: iOS: -enable-source-import plus %target-build-swift equals link errors
8-
// FIXME: This test uses IRGen with -enable-source-import; it may fail with -g.
8+
// REQUIRES: executable_test
9+
// REQUIRES: swift_interpreter
910

1011
import complex
1112

test/Interpreter/mandelbrot.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
// RUN: %target-jit-run -I %S -enable-source-import %s | %FileCheck %s
1+
// RUN: %empty-directory(%t)
2+
// RUN: %target-build-swift -emit-library -o %t/libcomplex.%target-dylib-extension -emit-module %S/complex.swift -module-link-name complex
3+
// RUN: %target-jit-run %s -I %t -L %t | %FileCheck %s
4+
5+
// RUN: grep -v import %s > %t/main.swift
6+
// RUN: %target-jit-run %t/main.swift %S/complex.swift | %FileCheck %s
7+
28
// REQUIRES: executable_test
39
// REQUIRES: swift_interpreter
410

5-
// FIXME: iOS: -enable-source-import plus %target-build-swift equals link errors
6-
// FIXME: This test uses IRGen with -enable-source-import; it may fail with -g.
7-
811
import complex
912

1013
func printDensity(_ d: Int) {

0 commit comments

Comments
 (0)