[clang] 440f45a - [NFC][clang][Modules] Refine test checks by adding `:`

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 21 07:18:34 PST 2023


Author: Mariya Podchishchaeva
Date: 2023-02-21T10:16:05-05:00
New Revision: 440f45acff1c3df482cdfc8029a9d2eff3edd9f8

URL: https://github.com/llvm/llvm-project/commit/440f45acff1c3df482cdfc8029a9d2eff3edd9f8
DIFF: https://github.com/llvm/llvm-project/commit/440f45acff1c3df482cdfc8029a9d2eff3edd9f8.diff

LOG: [NFC][clang][Modules] Refine test checks by adding `:`

The test can fail if wokring directory where the test was launched
has a `error` substring in its path.

Reviewed By: ChuanqiXu

Differential Revision: https://reviews.llvm.org/D143734

Added: 
    

Modified: 
    clang/test/Modules/libstdcxx-ambiguous-internal.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/Modules/libstdcxx-ambiguous-internal.cpp b/clang/test/Modules/libstdcxx-ambiguous-internal.cpp
index 784b442eab468..613fb7ebdf6bc 100644
--- a/clang/test/Modules/libstdcxx-ambiguous-internal.cpp
+++ b/clang/test/Modules/libstdcxx-ambiguous-internal.cpp
@@ -2,12 +2,12 @@
 // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -emit-module -fmodule-name=std -fmodules-cache-path=%t %S/Inputs/libstdcxx-ambiguous-internal/module.modulemap -Werror
 // RUN: %clang_cc1 -x c++ -std=c++11 -fmodules -emit-module -fmodule-name=std -fmodules-cache-path=%t %S/Inputs/libstdcxx-ambiguous-internal/module.modulemap -fmodules-local-submodule-visibility -DAMBIGUOUS 2>&1| FileCheck %s
 
-// CHECK-NOT: error
+// CHECK-NOT: error:
 // CHECK: warning: ambiguous use of internal linkage declaration 'f' defined in multiple modules
 // CHECK: note: declared here in module 'std.C'
 // CHECK: note: declared here in module 'std.B'
-// CHECK-NOT: error
+// CHECK-NOT: error:
 // CHECK: warning: ambiguous use of internal linkage declaration 'n' defined in multiple modules
 // CHECK: note: declared here in module 'std.C'
 // CHECK: note: declared here in module 'std.B'
-// CHECK-NOT: error
+// CHECK-NOT: error:


        


More information about the cfe-commits mailing list