Skip to content

Commit 2634841

Browse files
committed
[windows] Quote argument for Windows compatibility.
In Windows the dollar doesn't introduce variables, so it doesn't need to be escaped, and was creating an error when running the test on Windows. Howerver, the unescaped dollar will be interpreted like a variable in Unix shells, and will fail the test. The solution is quoting the inside of the argument, which disables the variable substitution on Linux, and doesn't seem to affect the Windows command line parser.
1 parent ce6a1cb commit 2634841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/IDE/print_type_interface.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ extension Array.Inner where Element: P2 {
9797
extension Int: P2 {}
9898

9999
// Print interface for Array<Int>.Inner
100-
// RUN: %target-swift-ide-test -print-type-interface -usr=\$sSa20print_type_interfaceE5InnerVySi_GD -module-name print_type_interface -source-filename %s | %FileCheck %s -check-prefix=TYPE6
100+
// RUN: %target-swift-ide-test -print-type-interface -usr='$sSa20print_type_interfaceE5InnerVySi_GD' -module-name print_type_interface -source-filename %s | %FileCheck %s -check-prefix=TYPE6
101101

102102
// TYPE6-LABEL: public struct Inner {
103103
// TYPE6: public func innerFoo()

0 commit comments

Comments
 (0)