[Test][IDE] Replace process substitution with temp file for internal shell

Replace `diff -u <(tail -n +9 %s) %t.txt` substitution with a temp file
for LLVMs LIT internal shell

Note: Start tail at line 10 to skip `// EXPECTED OUTPUT STARTS BELOW THIS LINE`
so the temp file matches the actual compiler output
This commit is contained in:
Ramon Asuncion
2025-09-30 19:26:50 -07:00
parent 94f8a05673
commit 1ba5cbcbe7
2 changed files with 4 additions and 2 deletions

View File

@@ -1,7 +1,8 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-ide-test -print-module -source-filename %s -module-to-print=BoolBridgingTests -function-definitions=false -skip-unavailable -F %S/Inputs/mock-sdk > %t.txt
// RUN: diff -u <(tail -n +9 %s) %t.txt
// RUN: tail -n +10 %s > %t/a
// RUN: diff -u %t/a %t.txt
// REQUIRES: objc_interop

View File

@@ -1,7 +1,8 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -print-module -source-filename %s -module-to-print=SwiftNameTests -function-definitions=false -F %S/Inputs/mock-sdk > %t.txt
// RUN: diff -u <(tail -n +9 %s) %t.txt
// RUN: tail -n +10 %s > %t/a
// RUN: diff -u %t/a %t.txt
// REQUIRES: objc_interop