llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang-modules Author: Ariel-Burton <details> <summary>Changes</summary> On some platforms this test fails because the "2>&1" merges stdout and stderr. This can cause the output to interleaved in unpredictable ways. The work round is to keep the output streams separate and check each independently --- Full diff: https://github.com/llvm/llvm-project/pull/238138.diff 1 Files Affected: - (modified) clang/test/Modules/cxx20-fatal-module-loader-error.cpp (+3-2) ``````````diff diff --git a/clang/test/Modules/cxx20-fatal-module-loader-error.cpp b/clang/test/Modules/cxx20-fatal-module-loader-error.cpp index ea2b3a2274fd3b..f7468b530f2b2e 100644 --- a/clang/test/Modules/cxx20-fatal-module-loader-error.cpp +++ b/clang/test/Modules/cxx20-fatal-module-loader-error.cpp @@ -1,9 +1,10 @@ // RUN: rm -rf %t // RUN: mkdir %t // RUN: touch %t/A.pcm -// RUN: not %clang_cc1 -std=c++20 -fmodule-file=A=%t/A.pcm -ast-dump %s 2>&1 | FileCheck %s +// RUN: not %clang_cc1 -std=c++20 -fmodule-file=A=%t/A.pcm -ast-dump %s 2> %t/A.stderr | FileCheck %s +// RUN: FileCheck --check-prefix=CHECK-STDERR %s < %t/A.stderr -// CHECK: fatal error: file '{{.*}}A.pcm' is not a valid module file +// CHECK-STDERR: fatal error: file '{{.*}}A.pcm' is not a valid module file // CHECK: VarDecl {{.*}} n 'int' import A; `````````` </details> https://github.com/llvm/llvm-project/pull/238138 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
