aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-04-03 04:03:07 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-04-03 04:03:07 -0700
commitcbf0179287a799be27e278a41f7705d4c20d9f11 (patch)
treed4129d4a97b5eddb166f5cee3a8df5c9a393965f /binutils/testsuite
parentb366059a5b384ed822e44a6407b35ab1386b925f (diff)
downloadgdb-cbf0179287a799be27e278a41f7705d4c20d9f11.zip
gdb-cbf0179287a799be27e278a41f7705d4c20d9f11.tar.gz
gdb-cbf0179287a799be27e278a41f7705d4c20d9f11.tar.bz2
Make is_zlib_supported always return 1
* lib/binutils-common.exp (is_zlib_supported): Always return 1.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r--binutils/testsuite/ChangeLog4
-rw-r--r--binutils/testsuite/lib/binutils-common.exp22
2 files changed, 5 insertions, 21 deletions
diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog
index 5c85ba8..04dfa46 100644
--- a/binutils/testsuite/ChangeLog
+++ b/binutils/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2015-04-03 H.J. Lu <hongjiu.lu@intel.com>
+
+ * lib/binutils-common.exp (is_zlib_supported): Always return 1.
+
2015-04-02 Nick Clifton <nickc@redhat.com>
* binutils-all/readelf.ss-64: Move possible location of the $d
diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp
index 7540045..e989da4 100644
--- a/binutils/testsuite/lib/binutils-common.exp
+++ b/binutils/testsuite/lib/binutils-common.exp
@@ -154,27 +154,7 @@ proc is_elf64 { binary_file } {
# True if the build supports zlib compression.
proc is_zlib_supported {} {
-
- # This replicates the AS selection logic of dejagnu's target_assemble.
- global AS_FOR_TARGET
- if [info exists AS_FOR_TARGET] {
- set AS $AS_FOR_TARGET
- } else {
- if {![board_info target exists assembler]} {
- set AS [find_gas]
- } else {
- set AS [board_info target assembler]
- }
- }
-
- set as_output [remote_exec host "$AS --help"]
-
- set have_zlib 0
- if {[string first "--compress-debug-sections" $as_output] >= 0} {
- set have_zlib 1
- }
-
- return $have_zlib
+ return 1
}
# Compare two files line-by-line. FILE_1 is the actual output and FILE_2