[Support] Do not run test on AIX
authorSerge Pavlov <sepavloff@gmail.com>
Mon, 31 Oct 2022 12:09:32 +0000 (19:09 +0700)
committerSerge Pavlov <sepavloff@gmail.com>
Mon, 31 Oct 2022 15:27:42 +0000 (22:27 +0700)
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

llvm/unittests/Support/CommandLineTest.cpp

index 26e82d1..df33e53 100644 (file)
@@ -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) {