aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2022-10-31 19:09:32 +0700
committerSerge Pavlov <sepavloff@gmail.com>2022-10-31 22:27:42 +0700
commit6ca33cb925edf17fa837b773cf3cfdd922a0e88f (patch)
treefb1e6529fdf73f8a06e2f82ad61a92fe75130df1 /llvm/unittests/Support/CommandLineTest.cpp
parentd45be8873628ce39e76dba6f4533bf96aa9f1985 (diff)
downloadllvm-6ca33cb925edf17fa837b773cf3cfdd922a0e88f.zip
llvm-6ca33cb925edf17fa837b773cf3cfdd922a0e88f.tar.gz
llvm-6ca33cb925edf17fa837b773cf3cfdd922a0e88f.tar.bz2
[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
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
-rw-r--r--llvm/unittests/Support/CommandLineTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/Support/CommandLineTest.cpp b/llvm/unittests/Support/CommandLineTest.cpp
index 26e82d1..df33e53 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) {