diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-04-01 00:27:28 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-04-01 00:27:28 +0000 |
commit | 65cbbd4ac53496742ba275e40ada4325e8fc6f68 (patch) | |
tree | 870d1be6c329eb31c9d888aa0648db6dce8459cb | |
parent | 10befcf993828864c29999455c7d0b4c94b483b2 (diff) | |
download | bcm5719-llvm-65cbbd4ac53496742ba275e40ada4325e8fc6f68.tar.gz bcm5719-llvm-65cbbd4ac53496742ba275e40ada4325e8fc6f68.zip |
Fix up compression related test cases
Fallout from r205261, ensure it doesn't matter how we disable compressed
debug info, even if zlib is missing and that we warn when we don't have
zlib and don't warn when we do, all while silently suppressing these
tests on the systems they weren't intended for...
llvm-svn: 205271
-rw-r--r-- | clang/test/Driver/compress.c | 10 | ||||
-rw-r--r-- | clang/test/Driver/integrated-as.s | 6 | ||||
-rw-r--r-- | clang/test/Driver/nozlibcompress.c | 6 |
3 files changed, 13 insertions, 9 deletions
diff --git a/clang/test/Driver/compress.c b/clang/test/Driver/compress.c index dcc443e273a..6cdc6b72243 100644 --- a/clang/test/Driver/compress.c +++ b/clang/test/Driver/compress.c @@ -1,4 +1,8 @@ -// RUN: %clang -c %s -Wa,--compress-debug-sections 2>&1 | FileCheck %s -// REQUIRES: nozlib +// RUN: %clang -### -c -integrated-as -Wa,-compress-debug-sections %s 2>&1 | FileCheck --check-prefix=COMPRESS_DEBUG %s +// RUN: %clang -### -c -integrated-as -Wa,--compress-debug-sections %s 2>&1 | FileCheck --check-prefix=COMPRESS_DEBUG %s +// REQUIRES: zlib -// CHECK: warning: cannot compress debug sections (zlib not installed) +// COMPRESS_DEBUG: "-compress-debug-sections" + +// RUN: %clang -### -c -integrated-as -Wa,--compress-debug-sections -Wa,--nocompress-debug-sections %s 2>&1 | FileCheck --check-prefix=NOCOMPRESS_DEBUG %s +// NOCOMPRESS_DEBUG-NOT: "-compress-debug-sections" diff --git a/clang/test/Driver/integrated-as.s b/clang/test/Driver/integrated-as.s index 1beae824b07..ee2c8cf8523 100644 --- a/clang/test/Driver/integrated-as.s +++ b/clang/test/Driver/integrated-as.s @@ -29,9 +29,3 @@ // XA_INCLUDE2: cc1as // XA_INCLUDE2: "-Ifoo_dir" -// RUN: %clang -### -c -integrated-as -Wa,-compress-debug-sections %s 2>&1 | FileCheck --check-prefix=COMPRESS_DEBUG %s -// RUN: %clang -### -c -integrated-as -Wa,--compress-debug-sections %s 2>&1 | FileCheck --check-prefix=COMPRESS_DEBUG %s -// COMPRESS_DEBUG: "-compress-debug-sections" - -// RUN: %clang -### -c -integrated-as -Wa,-compress-debug-sections -Wa,-nocompress-debug-sections %s 2>&1 | FileCheck --check-prefix=NOCOMPRESS_DEBUG %s -// NOCOMPRESS_DEBUG-NOT: "-compress-debug-sections" diff --git a/clang/test/Driver/nozlibcompress.c b/clang/test/Driver/nozlibcompress.c new file mode 100644 index 00000000000..4eac0661655 --- /dev/null +++ b/clang/test/Driver/nozlibcompress.c @@ -0,0 +1,6 @@ +// RUN: %clang -c %s -Wa,--compress-debug-sections 2>&1 | FileCheck %s +// RUN: %clang -c %s -Wa,--compress-debug-sections -Wa,--nocompress-debug-sections 2>&1 | FileCheck --check-prefix=NOWARN %s +// REQUIRES: nozlib + +// CHECK: warning: cannot compress debug sections (zlib not installed) +// NOWARN-NOT: warning: cannot compress debug sections (zlib not installed) |