@@ -782,37 +782,6 @@ TEST(CommandLineTest, ResponseFiles) {
782
782
llvm::sys::fs::remove (TestDir);
783
783
}
784
784
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
-
816
785
TEST (CommandLineTest, SetDefautValue) {
817
786
cl::ResetCommandLineParser ();
818
787
0 commit comments