aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2020-07-22 00:56:57 +0700
committerSerge Pavlov <sepavloff@gmail.com>2020-07-22 01:00:32 +0700
commitac0edc55887b6961ad90fd51f349c9587b1a8a7a (patch)
treeed903154b395d3535824d8e6a3b29810a8c37e3c /llvm/unittests/Support/CommandLineTest.cpp
parentb9fc20ebe7cda07dbc7b1d9b0dbdef3d9627094f (diff)
downloadllvm-ac0edc55887b6961ad90fd51f349c9587b1a8a7a.zip
llvm-ac0edc55887b6961ad90fd51f349c9587b1a8a7a.tar.gz
llvm-ac0edc55887b6961ad90fd51f349c9587b1a8a7a.tar.bz2
Revert "[Windows] Fix limit on command line size"
This reverts commit d4020ef7c474b5e695d77aa100d7f68dc0c66b4e. It broke LLDB buildbot: http://lab.llvm.org:8011/builders/lldb-x64-windows-ninja/builds/17702.
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
-rw-r--r--llvm/unittests/Support/CommandLineTest.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/unittests/Support/CommandLineTest.cpp b/llvm/unittests/Support/CommandLineTest.cpp
index e8c2cef..e1b706e 100644
--- a/llvm/unittests/Support/CommandLineTest.cpp
+++ b/llvm/unittests/Support/CommandLineTest.cpp
@@ -763,18 +763,6 @@ TEST(CommandLineTest, DefaultOptions) {
TEST(CommandLineTest, ArgumentLimit) {
std::string args(32 * 4096, 'a');
EXPECT_FALSE(llvm::sys::commandLineFitsWithinSystemLimits("cl", args.data()));
- std::string args2(256, 'a');
- EXPECT_TRUE(llvm::sys::commandLineFitsWithinSystemLimits("cl", args2.data()));
- if (Triple(sys::getProcessTriple()).isOSWindows()) {
- // We use 32000 as a limit for command line length. Program name ('cl'),
- // separating spaces and termination null character occupy 5 symbols.
- std::string long_arg(32000 - 5, 'b');
- EXPECT_TRUE(
- llvm::sys::commandLineFitsWithinSystemLimits("cl", long_arg.data()));
- long_arg += 'b';
- EXPECT_FALSE(
- llvm::sys::commandLineFitsWithinSystemLimits("cl", long_arg.data()));
- }
}
TEST(CommandLineTest, ResponseFileWindows) {