Skip to content

Commit e9900a2

Browse files
authored
Merge pull request #11538 from adrian-prantl/33993056
2 parents 6a6efd9 + 1b486ed commit e9900a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/DebugInfo/modulecache.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import ClangModule
77

88
// 1. Test that swift-ide-test creates a thin module without debug info.
99

10+
// RUN: %empty-directory(%t)
1011
// RUN: %swift-ide-test_plain -print-usrs -target %target-triple -module-cache-path %t -I %S/Inputs -source-filename %s
11-
// RUN: %target-swift-frontend %s -c -g -o %t.o -module-cache-path %t -I %S/Inputs
12-
// RUN: file %t/*/ClangModule-*.pcm | grep data
12+
// RUN: head -c 4 %t/*/ClangModule-*.pcm | grep -q CPCH
1313

1414
// 2. Test that swift is creating clang modules with debug info.
1515

1616
// RUN: %empty-directory(%t)
1717
// RUN: %target-swift-frontend %s -c -g -o %t.o -module-cache-path %t -I %S/Inputs
18-
// RUN: file %t/*/ClangModule-*.pcm | egrep '(Mach-O|ELF)'
18+
// RUN: file %t/*/ClangModule-*.pcm | egrep -q '(Mach-O|ELF)'
1919

2020
// 3. Test that swift-ide-check will not share swiftc's module cache.
2121

0 commit comments

Comments
 (0)