[clang] df741b2 - [HeaderSearch] Make a test independent of the local environment. (#100011)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 23 11:26:29 PDT 2024


Author: Volodymyr Sapsai
Date: 2024-07-23T11:26:25-07:00
New Revision: df741b2220710a8f59c3a31cf69909714d90a532

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

LOG: [HeaderSearch] Make a test independent of the local environment. (#100011)

Don't ask the driver to inspect the local environment but use `cc1`
directly.

Added: 
    

Modified: 
    clang/test/Modules/subdirectory-module-maps-working-dir.m

Removed: 
    


################################################################################
diff  --git a/clang/test/Modules/subdirectory-module-maps-working-dir.m b/clang/test/Modules/subdirectory-module-maps-working-dir.m
index 4fb19ff05ef38..43488e8d13601 100644
--- a/clang/test/Modules/subdirectory-module-maps-working-dir.m
+++ b/clang/test/Modules/subdirectory-module-maps-working-dir.m
@@ -1,8 +1,8 @@
 // RUN: rm -rf %t
-// RUN: %clang -fsyntax-only -fmodules -fmodules-cache-path=%t \
+// RUN: %clang_cc1 -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
 // RUN:    -working-directory %S/Inputs \
 // RUN:    -I subdirectory-module-maps-working-dir \
-// RUN:    %s -Werror=implicit-function-declaration -Xclang -verify
+// RUN:    %s -Werror=implicit-function-declaration -verify
 
 @import ModuleInSubdir;
 


        


More information about the cfe-commits mailing list