diff --git a/test/diagnostics/pretty-printed-diagnostics.swift b/test/diagnostics/pretty-printed-diagnostics.swift index 56373bd5ee36e..514a33eb61c2f 100644 --- a/test/diagnostics/pretty-printed-diagnostics.swift +++ b/test/diagnostics/pretty-printed-diagnostics.swift @@ -1,4 +1,4 @@ -// RUN: not %target-swift-frontend -diagnostic-style=swift -typecheck %s 2>&1 | %FileCheck %s +// RUN: not %target-swift-frontend -diagnostic-style=swift -typecheck %/s 2>&1 | %FileCheck %s 1 + 2 diff --git a/test/diagnostics/pretty-printed-source-loc-directive-diags.swift b/test/diagnostics/pretty-printed-source-loc-directive-diags.swift index e26b5c77524e3..049d85ca16176 100644 --- a/test/diagnostics/pretty-printed-source-loc-directive-diags.swift +++ b/test/diagnostics/pretty-printed-source-loc-directive-diags.swift @@ -1,4 +1,4 @@ -// RUN: not %target-swift-frontend -diagnostic-style=swift -typecheck %s 2>&1 | %FileCheck %s +// RUN: not %target-swift-frontend -diagnostic-style=swift -typecheck %/s 2>&1 | %FileCheck %s // Error split between the real file and a virtual one. #sourceLocation(file: "abc.swift", line: 9)