Skip to content

Commit c2e108e

Browse files
committed
test: repair test on Windows
The test did not account for the fact that the driver is spelt differently in some cases and may have quoting involved.
1 parent ecf8a35 commit c2e108e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/Driver/enable_regex_literals_flag.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// RUN: %target-swiftc_driver -enable-regex-literals -disallow-use-new-driver -driver-print-jobs %s 2>^1 | %FileCheck %s
22
// The new driver has its own test for this
3+
34
// REQUIRES: cplusplus_driver
4-
// CHECK: {{.*}}/swift-frontend -frontend{{.*}}-enable-regex-literals
5+
6+
// CHECK: {{.*}}swift{{c|-frontend}}{{(.exe)?"?}} -frontend{{.*}}-enable-regex-literals
57

68
public func foo() -> Int {
79
return 42

0 commit comments

Comments
 (0)