diff options
Diffstat (limited to 'ld/testsuite/ld-sh/rd-sh.exp')
-rw-r--r-- | ld/testsuite/ld-sh/rd-sh.exp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-sh/rd-sh.exp b/ld/testsuite/ld-sh/rd-sh.exp index 5bc9a0c..7060d02 100644 --- a/ld/testsuite/ld-sh/rd-sh.exp +++ b/ld/testsuite/ld-sh/rd-sh.exp @@ -33,4 +33,14 @@ foreach shtest $rd_test_list { # We need to strip the ".d", but can leave the dirname. verbose [file rootname $shtest] run_dump_test [file rootname $shtest] + if [string match $srcdir/$subdir/*-dso.d $shtest] { + # Copy the output of the DSO-createing test to .so file. + # Notice that a DSO-creating test must preceed the tests + # which need that DSO in sort-order by name. + set cmd "cp tmpdir/dump tmpdir/[file rootname [file tail $shtest]].so" + send_log "$cmd\n" + set cmdret [catch "exec $cmd" comp_output] + send_log "$comp_output\n" + # FIXME: What if it fails? Need we do something? + } } |