From 34cbb3000c7c4d7cf7924370beba90d478c1cab9 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 28 Jun 2020 20:17:08 -0700 Subject: [PATCH] test: unixise some paths in diagnostics tests (NFCI) This simplifies the test pattern. --- test/diagnostics/pretty-printed-diagnostics.swift | 2 +- .../diagnostics/pretty-printed-source-loc-directive-diags.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)