Skip to content

Commit 80ce2c3

Browse files
authored
Merge pull request swiftlang#22387 from xiaobai/fix_modulecache_dbginfo_test
[DebugInfo] Make modulecache test windows-compatible
2 parents 093d483 + da79d60 commit 80ce2c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/DebugInfo/modulecache.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ import ClangModule
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 -q '(Mach-O|ELF)'
18+
// RUN: llvm-readobj -h %t/*/ClangModule-*.pcm | %FileCheck %s
19+
// CHECK: Format: {{(Mach-O|ELF|COFF)}}
1920

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

0 commit comments

Comments
 (0)