From e3bed008c7a024722a21236cfc3cb39e942e4edb Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 8 Dec 2019 11:26:32 -0800 Subject: [PATCH] test: loosen the #file, #filePath tests for Windows Be more lenient about the path separator. This repairs the tests on Windows after #25656. --- test/SILGen/magic_identifier_file.swift | 4 ++-- test/SILGen/magic_identifier_filepath.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/SILGen/magic_identifier_file.swift b/test/SILGen/magic_identifier_file.swift index f2cfeecfc73d4..f2a41d9a62829 100644 --- a/test/SILGen/magic_identifier_file.swift +++ b/test/SILGen/magic_identifier_file.swift @@ -1,5 +1,5 @@ -// RUN: %target-swift-emit-silgen -module-name Foo %s | %FileCheck --check-prefixes=BOTH,ABSOLUTE %s -// RUN: %target-swift-emit-silgen -enable-experimental-concise-pound-file -DNEEDS_CONCISE -module-name Foo %s | %FileCheck --check-prefixes=BOTH,CONCISE %s +// RUN: %target-swift-emit-silgen -module-name Foo %/s | %FileCheck --check-prefixes=BOTH,ABSOLUTE %s +// RUN: %target-swift-emit-silgen -enable-experimental-concise-pound-file -DNEEDS_CONCISE -module-name Foo %/s | %FileCheck --check-prefixes=BOTH,CONCISE %s // FIXME: Once this feature becomes non-experimental, we should update existing // tests and delete this file. diff --git a/test/SILGen/magic_identifier_filepath.swift b/test/SILGen/magic_identifier_filepath.swift index 3a407b0da9f0a..dcda58e6a6d6b 100644 --- a/test/SILGen/magic_identifier_filepath.swift +++ b/test/SILGen/magic_identifier_filepath.swift @@ -1,5 +1,5 @@ // Check that we generate the right code with the flag. -// RUN: %target-swift-emit-silgen -enable-experimental-concise-pound-file -module-name Foo %s | %FileCheck %s +// RUN: %target-swift-emit-silgen -enable-experimental-concise-pound-file -module-name Foo %/s | %FileCheck %s // Check that we give errors for use of #filePath if concise #file isn't enabled. // FIXME: Drop if we stop rejecting this.