summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-04-13 00:46:50 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-04-13 00:46:50 +0000
commit29a0f0db9ebb58f1b6fdb2614654be4ea72134cd (patch)
treee560c793e513b76fd0516b0d51ad56e70c7f7003
parent0d2b80d49968bba1d7c49606c675b7e3ce9ca21b (diff)
downloadbcm5719-llvm-29a0f0db9ebb58f1b6fdb2614654be4ea72134cd.tar.gz
bcm5719-llvm-29a0f0db9ebb58f1b6fdb2614654be4ea72134cd.zip
Fix broken test. We can't assume that 2MB of args is enough to require a response file.
This test has apparently been broken for years, but we never noticed before because it's a long test and long tests approximately never get run. llvm-svn: 300151
-rw-r--r--clang/test/Driver/response-file.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/test/Driver/response-file.c b/clang/test/Driver/response-file.c
index 0818f3fe2bc..a7c5966c98d 100644
--- a/clang/test/Driver/response-file.c
+++ b/clang/test/Driver/response-file.c
@@ -9,11 +9,12 @@
// Check that clang is able to process long response files, routing a long
// sequence of arguments to other tools by using response files as well.
-// We generate a 2MB response file to be big enough to surpass any system
-// limit.
+// We generate a 2MB response file to attempt to surpass any system limit.
+// But there's no guarantee that we actually will (the system limit could be
+// *huge*), so just check that invoking cc1 succeeds under these conditions.
+//
// RUN: %clang -E %S/Inputs/gen-response.c | grep DTEST > %t.1.txt
// RUN: %clang -E @%t.1.txt %s -v 2>&1 | FileCheck %s -check-prefix=LONG
-// LONG: Arguments passed via response file
// LONG: extern int it_works;
#ifdef TEST
OpenPOWER on IntegriCloud