Skip to content

Commit b22e4d2

Browse files
committed
Enable YAML compatibility for some tests (NFC)
This makes sure TMP_DIR is sanitized correctly on Windows despite output using `\\` as path separator.
1 parent 186b333 commit b22e4d2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/ScanDependencies/separate_clang_scan_cache.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// RUN: %empty-directory(%t.module-cache)
22
// RUN: %empty-directory(%t.scanner-cache)
33

4-
// RUN: %target-swift-frontend -scan-dependencies -module-cache-path %t.module-cache -clang-scanner-module-cache-path %t.scanner-cache %s -o %t.deps.json -I %S/Inputs/SwiftDifferent -dump-clang-diagnostics 2>&1 | %FileCheck %s --check-prefix=CHECK-CLANG-COMMAND
5-
// RUN: %validate-json %t.deps.json | %FileCheck %s --check-prefix=CHECK-DEPS
4+
// RUN: %target-swift-frontend -scan-dependencies -module-cache-path %t.module-cache -clang-scanner-module-cache-path %t.scanner-cache %s -o %t.deps.json -I %S/Inputs/SwiftDifferent -dump-clang-diagnostics 2>&1 | %FileCheck %s --check-prefix=CHECK-CLANG-COMMAND --enable-yaml-compatibility
5+
// RUN: %validate-json %t.deps.json | %FileCheck %s --check-prefix=CHECK-DEPS --enable-yaml-compatibility
66

77
// Ensure we prefer clang scanner module cache path
88
// CHECK-CLANG-COMMAND: '-fmodules-cache-path={{.*}}.scanner-cache'

test/ScanDependencies/separate_clang_scan_cache_bridging.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// RUN: %empty-directory(%t.module-cache)
22
// RUN: %empty-directory(%t.scanner-cache)
33

4-
// RUN: %target-swift-frontend -scan-dependencies -module-cache-path %t.module-cache -clang-scanner-module-cache-path %t.scanner-cache %s -o %t.deps.json -I %S/Inputs/SwiftDifferent -import-objc-header %S/Inputs/CHeaders/Bridging.h -dump-clang-diagnostics 2>&1 | %FileCheck %s --check-prefix=CHECK-CLANG-COMMAND
5-
// RUN: %validate-json %t.deps.json | %FileCheck %s --check-prefix=CHECK-DEPS
4+
// RUN: %target-swift-frontend -scan-dependencies -module-cache-path %t.module-cache -clang-scanner-module-cache-path %t.scanner-cache %s -o %t.deps.json -I %S/Inputs/SwiftDifferent -import-objc-header %S/Inputs/CHeaders/Bridging.h -dump-clang-diagnostics 2>&1 | %FileCheck %s --check-prefix=CHECK-CLANG-COMMAND --enable-yaml-compatibility
5+
// RUN: %validate-json %t.deps.json | %FileCheck %s --check-prefix=CHECK-DEPS --enable-yaml-compatibility
66

77
// Ensure we prefer clang scanner module cache path
88
// CHECK-CLANG-COMMAND: '-fmodules-cache-path={{.*}}.scanner-cache'

0 commit comments

Comments
 (0)