aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-size
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-07-29 10:51:08 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-07-29 10:52:38 -0700
commitde0a00263930c9ed3e4e330a0d8573df4805fe87 (patch)
tree3363c7f7e1f11d3704c5804b447d6e80aa0f4765 /ld/testsuite/ld-size
parent06265e53f4657a86f3ac3485552b97c942c9f4ac (diff)
downloadgdb-de0a00263930c9ed3e4e330a0d8573df4805fe87.zip
gdb-de0a00263930c9ed3e4e330a0d8573df4805fe87.tar.gz
gdb-de0a00263930c9ed3e4e330a0d8573df4805fe87.tar.bz2
Move run-time support check for size relocation
We must check run-time support for size relocation first before running the tests. * ld-size/size.exp: Move run-time support check.
Diffstat (limited to 'ld/testsuite/ld-size')
-rw-r--r--ld/testsuite/ld-size/size.exp28
1 files changed, 14 insertions, 14 deletions
diff --git a/ld/testsuite/ld-size/size.exp b/ld/testsuite/ld-size/size.exp
index 2a16c71..5a774fa 100644
--- a/ld/testsuite/ld-size/size.exp
+++ b/ld/testsuite/ld-size/size.exp
@@ -161,6 +161,20 @@ run_cc_link_tests [list \
] \
]
+# Check if size relocation works at run-time.
+catch "exec tmpdir/size-7.exe > tmpdir/dump.out" exec_output
+if ![string match "" $exec_output] then {
+ send_log "No run-time size relocation support: $exec_output\n"
+ verbose "No run-time size relocation support: $exec_output" 1
+ return
+}
+
+if { [regexp_diff "tmpdir/dump.out" "$srcdir/$subdir/size-7.out" ] } then {
+ verbose "output is [file_contents "tmpdir/dump.out"]" 2
+ fail "Run-time size relocation"
+ return
+}
+
# Run-time size relocation tests.
run_ld_link_exec_tests [] [list \
[list \
@@ -295,17 +309,3 @@ run_ld_link_exec_tests [] [list \
"size-10.out" \
] \
]
-
-# Check if size relocation works at run-time.
-catch "exec tmpdir/size-7.exe > tmpdir/dump.out" exec_output
-if ![string match "" $exec_output] then {
- send_log "No run-time size relocation support: $exec_output\n"
- verbose "No run-time size relocation support: $exec_output" 1
- return
-}
-
-if { [regexp_diff "tmpdir/dump.out" "$srcdir/$subdir/size-7.out" ] } then {
- verbose "output is [file_contents "tmpdir/dump.out"]" 2
- fail "Run-time size relocation"
- return
-}