Skip to content

Commit ff373e9

Browse files
committed
[test] Fix validation-test/Driver/many-inputs.swift differently.
It turns out the problem was with the full length of the argument list in characters (bytes), not just the /number/ of arguments. Defeat this by using paths relative to the temporary directory we're using. rdar://problem/25617239, hopefully for the last time.
1 parent 3566c7d commit ff373e9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

validation-test/Driver/many-inputs.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@
44
// at one point.
55
// RUN: for i in {1..1100}; do echo "public func foo$i() {}" > %t/$i.swift; echo "CHECK: foo$i" >> %t/check.txt; done
66

7-
// We're not using %target-swift-build because we don't want to run into any
8-
// limits *xcrun* has on arguments.
9-
// RUN: %swiftc_driver -sdk %sdk -target %target-triple -force-single-frontend-invocation -emit-library %t/*.swift -o %t/libWMO
7+
// RUN: (cd %t && %target-build-swift -force-single-frontend-invocation -emit-library ./*.swift -o ./libWMO)
108
// RUN: nm %t/libWMO | FileCheck %t/check.txt
119

12-
// RUN: %swiftc_driver -sdk %sdk -target %target-triple -force-single-frontend-invocation -num-threads 1 -emit-library %t/*.swift -o %t/libWMOThreaded
10+
// RUN: (cd %t && %target-build-swift -force-single-frontend-invocation -num-threads 1 -emit-library ./*.swift -o ./libWMOThreaded)
1311
// RUN: nm %t/libWMOThreaded | FileCheck %t/check.txt
1412

1513
// This is very slow due to process overhead. It's also doing one file at a time
1614
// because we don't have a good way for lit tests to claim more than one thread.
1715
// But it's still important to check.
18-
// RUN: %swiftc_driver -sdk %sdk -target %target-triple -emit-library %t/*.swift -o %t/libMultiFile
16+
// RUN: (cd %t && %target-build-swift -emit-library ./*.swift -o ./libMultiFile)
1917
// RUN: nm %t/libMultiFile | FileCheck %t/check.txt
2018

0 commit comments

Comments
 (0)