Summary: It seems that rL292518 introduced a RUN: false, but the continuation rL292545 forgot to remove it back. This has flown under the radar, because it's a long test and doesn't get executed by default during sanity testing. To test: $ cd llvm_build $ ./bin/llvm-lit --param run_long_tests=true tools/clang/test/Driver/response-file.c @rsmith: have a look if this change is OK please. Reviewers: bkramer Reviewed By: bkramer Subscribers: cfe-commits, rsmith Differential Revision: https://reviews.llvm.org/D28941 llvm-svn: 292600
24 lines
937 B
C
24 lines
937 B
C
// REQUIRES: long_tests
|
|
|
|
// Check that clang is able to process short response files
|
|
// Since this is a short response file, clang must not use a response file
|
|
// to pass its parameters to other tools. This is only necessary for a large
|
|
// number of parameters.
|
|
// RUN: echo "-DTEST" > %t.0.txt
|
|
// RUN: %clang -E @%t.0.txt %s -v 2>&1 | FileCheck %s -check-prefix=SHORT
|
|
// SHORT-NOT: Arguments passed via response file
|
|
// SHORT: extern int it_works;
|
|
|
|
// 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.
|
|
// 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
|
|
extern int it_works;
|
|
#endif
|