Skip to content

Commit 8eeb56d

Browse files
committed
Revert [Support] Add a test for recursive response file expansion
This reverts r358451 (git commit c849746) The test breaks a Windows buildbot: http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/17016/steps/test-check-all/logs/stdio llvm-svn: 358461
1 parent d60ac11 commit 8eeb56d

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

llvm/unittests/Support/CommandLineTest.cpp

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -782,37 +782,6 @@ TEST(CommandLineTest, ResponseFiles) {
782782
llvm::sys::fs::remove(TestDir);
783783
}
784784

785-
TEST(CommandLineTest, RecursiveResponseFiles) {
786-
SmallString<128> TestDir;
787-
std::error_code EC = sys::fs::createUniqueDirectory("unittest", TestDir);
788-
EXPECT_TRUE(!EC);
789-
790-
SmallString<128> ResponseFilePath;
791-
sys::path::append(ResponseFilePath, TestDir, "recursive.rsp");
792-
std::string ResponseFileRef = std::string("@") + ResponseFilePath.c_str();
793-
794-
std::ofstream ResponseFile(ResponseFilePath.str());
795-
EXPECT_TRUE(ResponseFile.is_open());
796-
ResponseFile << ResponseFileRef << "\n";
797-
ResponseFile << ResponseFileRef << "\n";
798-
ResponseFile.close();
799-
800-
// Ensure the recursive expansion terminates.
801-
llvm::SmallVector<const char *, 4> Argv = {"test/test",
802-
ResponseFileRef.c_str()};
803-
llvm::BumpPtrAllocator A;
804-
llvm::StringSaver Saver(A);
805-
bool Res = llvm::cl::ExpandResponseFiles(
806-
Saver, llvm::cl::TokenizeGNUCommandLine, Argv, false, false);
807-
EXPECT_FALSE(Res);
808-
809-
// Ensure some expansion took place.
810-
EXPECT_GT(Argv.size(), 2U);
811-
EXPECT_STREQ(Argv[0], "test/test");
812-
for (size_t i = 1; i < Argv.size(); ++i)
813-
EXPECT_STREQ(Argv[i], ResponseFileRef.c_str());
814-
}
815-
816785
TEST(CommandLineTest, SetDefautValue) {
817786
cl::ResetCommandLineParser();
818787

0 commit comments

Comments
 (0)