[llvm] 6ca33cb - [Support] Do not run test on AIX

Serge Pavlov via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 31 08:28:45 PDT 2022


Author: Serge Pavlov
Date: 2022-10-31T22:27:42+07:00
New Revision: 6ca33cb925edf17fa837b773cf3cfdd922a0e88f

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

LOG: [Support] Do not run test on AIX

A part of the unit test CommandLineTest/BadResponseFile, added in
the commit fd3d7a9f8cbb (Handle errors in expansion of response files)
fails on AIX. The test checks if an error is issued when `file` in
`@file` is a path to directory. This change excludes that check on
AIX platform.

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

Added: 
    

Modified: 
    llvm/unittests/Support/CommandLineTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Support/CommandLineTest.cpp b/llvm/unittests/Support/CommandLineTest.cpp
index 26e82d13e799c..df33e5309945a 100644
--- a/llvm/unittests/Support/CommandLineTest.cpp
+++ b/llvm/unittests/Support/CommandLineTest.cpp
@@ -1060,6 +1060,7 @@ TEST(CommandLineTest, BadResponseFile) {
   ASSERT_STREQ(Argv[0], "clang");
   ASSERT_STREQ(Argv[1], AFileExp.c_str());
 
+#ifndef _AIX
   std::string ADirExp = std::string("@") + std::string(ADir.path());
   Argv = {"clang", ADirExp.c_str()};
   Res = cl::ExpandResponseFiles(Saver, cl::TokenizeGNUCommandLine, Argv);
@@ -1067,6 +1068,7 @@ TEST(CommandLineTest, BadResponseFile) {
   ASSERT_EQ(2U, Argv.size());
   ASSERT_STREQ(Argv[0], "clang");
   ASSERT_STREQ(Argv[1], ADirExp.c_str());
+#endif
 }
 
 TEST(CommandLineTest, SetDefaultValue) {


        


More information about the llvm-commits mailing list