[clang] 831591b - [NFC][clang] Refine tests by adding `:` to checks

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 1 03:10:30 PST 2023


Author: Mariya Podchishchaeva
Date: 2023-03-01T05:58:34-05:00
New Revision: 831591b2a075d86f7ae51d0f688af1ddcf360707

URL: https://github.com/llvm/llvm-project/commit/831591b2a075d86f7ae51d0f688af1ddcf360707
DIFF: https://github.com/llvm/llvm-project/commit/831591b2a075d86f7ae51d0f688af1ddcf360707.diff

LOG: [NFC][clang] Refine tests by adding `:` to checks

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

Reviewed By: benlangmuir

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

Added: 
    

Modified: 
    clang/test/Driver/unknown-std.S
    clang/test/Index/allow-editor-placeholders.cpp
    clang/test/VFS/real-path-found-first.m
    clang/test/VFS/vfsroot-include.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/unknown-std.S b/clang/test/Driver/unknown-std.S
index ecb6a9e92fafd..eac102d9352d7 100644
--- a/clang/test/Driver/unknown-std.S
+++ b/clang/test/Driver/unknown-std.S
@@ -1,2 +1,2 @@
 // RUN: %clang -std=c++11 %s -E -o /dev/null 2>&1 | FileCheck %s --allow-empty
-// CHECK-NOT: error
+// CHECK-NOT: error:

diff  --git a/clang/test/Index/allow-editor-placeholders.cpp b/clang/test/Index/allow-editor-placeholders.cpp
index 5a7207d3f07a6..2870777d935c7 100644
--- a/clang/test/Index/allow-editor-placeholders.cpp
+++ b/clang/test/Index/allow-editor-placeholders.cpp
@@ -2,4 +2,4 @@
 
 <#placeholder#>;
 
-// CHECK-NOT: error
+// CHECK-NOT: error:

diff  --git a/clang/test/VFS/real-path-found-first.m b/clang/test/VFS/real-path-found-first.m
index 34a34098f4a20..60a7b10199f12 100644
--- a/clang/test/VFS/real-path-found-first.m
+++ b/clang/test/VFS/real-path-found-first.m
@@ -39,7 +39,7 @@
 // RUN:     -ivfsoverlay %t.yaml -fsyntax-only -Rmodule-include-translation \
 // RUN:     -Werror=non-modular-include-in-framework-module | FileCheck %s
 // CHECK: warning: treating
-// CHECK-NOT: error
+// CHECK-NOT: error:
 
 // With a VFS-mapped module map file
 // RUN: mv %t/SomeFramework.framework/Modules/module.modulemap %t/hide_module.map

diff  --git a/clang/test/VFS/vfsroot-include.c b/clang/test/VFS/vfsroot-include.c
index eb641c58a650d..99c9b4cca0c12 100644
--- a/clang/test/VFS/vfsroot-include.c
+++ b/clang/test/VFS/vfsroot-include.c
@@ -13,4 +13,4 @@
 #include "actual_header.h"
 // CHECK: fatal error: 'actual_header.h' file not found
 // CHECK: 1 error generated.
-// CHECK-NOT: error
+// CHECK-NOT: error:


        


More information about the cfe-commits mailing list