Since zlib is always supported, there is no need for is_zlib_supported.
binutils/testsuite/
* binutils-all/compress.exp: Remove is_zlib_supported check.
* binutils-all/objdump.exp: Likewise.
* binutils-all/readelf.exp (readelf_compressed_wa_test): Likewise.
* lib/utils-lib.exp (run_dump_test): Likewise.
* lib/binutils-common.exp (is_zlib_supported): Removed.
gas/testsuite/
* lib/gas-defs.exp (run_dump_test): Remove is_zlib_supported check.
ld/testsuite/
* ld-elf/compress.exp: Remove is_zlib_supported check.
Fail if --compress-debug-sections doesn't work.
* lib/ld-lib.exp (run_dump_test): Remove is_zlib_supported check.
+2015-04-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ * binutils-all/compress.exp: Remove is_zlib_supported check.
+ * binutils-all/objdump.exp: Likewise.
+ * binutils-all/readelf.exp (readelf_compressed_wa_test): Likewise.
+ * lib/utils-lib.exp (run_dump_test): Likewise.
+ * lib/binutils-common.exp (is_zlib_supported): Removed.
+
2015-04-06 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/compress.exp (compression_used): Remove "/dev/null"
# Test compressed .debug section.
-if { [is_remote host] || ![is_elf_format] || ![is_zlib_supported] } then {
+if { [is_remote host] || ![is_elf_format] } then {
return
}
# Test objdump -s on a file that contains a compressed .debug section
-if { ![is_elf_format] || ![is_zlib_supported] } then {
+if { ![is_elf_format] } then {
unsupported "objdump compressed debug"
} elseif { ![binutils_assemble $srcdir/$subdir/dw2-compressed.S tmpdir/dw2-compressed.o] } then {
fail "objdump compressed debug"
global srcdir
global subdir
- if { ![is_zlib_supported] } {
- unsupported "readelf -wa (compressed)"
- return
- }
-
# Compile the compressed-debug-section test file.
if { [target_compile $srcdir/$subdir/dw2-compressed.S tmpdir/dw2-compressed.o object debug] != "" } {
verbose "Unable to compile test file."
return 0
}
-# True if the build supports zlib compression.
-proc is_zlib_supported {} {
- return 1
-}
-
# Compare two files line-by-line. FILE_1 is the actual output and FILE_2
# is the expected output. Ignore blank lines in either file.
#
}
}
- if { [string match "*--compress-debug-sections*" $opts(as)] \
- && ![is_zlib_supported] } {
- unsupported $testname
- return
- }
-
if { $opts(source) == "" } {
set srcfile ${file}.s
} else {
+2015-04-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ * lib/gas-defs.exp (run_dump_test): Remove is_zlib_supported check.
+
2015-03-20 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/i386.exp: Don't run nops-1-bdver1, nops-1-bdver2,
}
}
- if { [string match "*--compress-debug-sections*" $opts(as)] \
- && ![is_zlib_supported] } {
- unsupported $testname
- return
- }
-
-
if { $opts(source) == "" } {
set sourcefile ${file}.s
} else {
+2015-04-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ * ld-elf/compress.exp: Remove is_zlib_supported check.
+ Fail if --compress-debug-sections doesn't work.
+ * lib/ld-lib.exp (run_dump_test): Remove is_zlib_supported check.
+
2015-04-01 Tejas Belagod <tejas.belagod@arm.com>
* ld-aarch64/aarch64-elf.exp: Add erratum843419 test.
return
}
-if ![is_zlib_supported] {
- return
-}
-
# The following tests require running the executable generated by ld.
if ![isnative] {
return
global as
if { ![ld_assemble $as "--compress-debug-sections $srcdir/$subdir/empty.s" tmpdir/empty.o ] } {
- unsupported "linker compressed debug sections"
+ fail "linker compressed debug sections"
}
set build_tests {
set dfile $srcdir/$subdir/$opts(dump)
}
- if { [string match "*--compress-debug-sections*" $opts(as)] \
- && ![is_zlib_supported] } {
- unsupported $testname
- return
- }
-
# Time to setup xfailures.
foreach targ $opts(xfail) {
setup_xfail $targ