Skip to content

Commit f8295cf

Browse files
author
Lance Parker
committed
fix bad cherry-pick
1 parent b25d3a0 commit f8295cf

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

benchmark/single-source/StringComparison.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ extension String {
3030
}
3131

3232

33-
34-
3533
public let StringComparison: [BenchmarkInfo] = [
3634
BenchmarkInfo(
3735
name: "StringComparison_ascii",

benchmark/single-source/StringComparison.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ AllWorkloads = ["ascii", "latin1", "fastPrenormal", "slowerPrenormal",
3737
ComparisonWorkloads = AllWorkloads
3838
HashingWorkloads = AllWorkloads[:-1]
3939
NormalizationWorkloads = AllWorkloads[:-1]
40+
}%
4041

4142
public let StringComparison: [BenchmarkInfo] = [
4243
% for Name in ComparisonWorkloads:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

validation-test/stdlib/StringNormalization.swift

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@
99
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
1010
//
1111
//===----------------------------------------------------------------------===//
12-
// RUN: mkdir -p %t
13-
// RUN: %target-build-swift %s -o %t/a.out
12+
// RUN: %empty-directory(%t)
13+
// RUN: if [ %target-runtime == "objc" ]; \
14+
// RUN: then \
15+
// RUN: %target-clang -fobjc-arc %S/Inputs/NSSlowString/NSSlowString.m -c -o %t/NSSlowString.o && \
16+
// RUN: %target-build-swift -I %S/Inputs/NSSlowString/ %t/NSSlowString.o %s -o %t/a.out; \
17+
// RUN: else \
18+
// RUN: %target-build-swift %s -o %t/a.out; \
19+
// RUN: fi
20+
// RUN: %target-codesign %t/a.out
1421
// RUN: %target-run %t/a.out %S/Inputs/NormalizationTest.txt
1522
// REQUIRES: executable_test
1623
// REQUIRES: objc_interop
@@ -19,6 +26,10 @@ import Swift
1926
import StdlibUnittest
2027
import StdlibUnicodeUnittest
2128

29+
#if _runtime(_ObjC)
30+
import NSSlowString
31+
#endif
32+
2233
private func expectEqualIterators(
2334
label: String,
2435
expected: [UInt8],

0 commit comments

Comments
 (0)