]> sourceware.org Git - dwz.git/commit
Remove leading whitespace in gnu-debugaltlink-name.sh output
authorTom de Vries <tdevries@suse.de>
Wed, 13 Mar 2019 10:13:21 +0000 (11:13 +0100)
committerTom de Vries <tdevries@suse.de>
Wed, 13 Mar 2019 10:20:01 +0000 (11:20 +0100)
commit33cd68d0d7ba485812f88a8be1471136d119aaf5
tree26b6abf977c1e106b282cb778cfe29838982cda9
parentaa8abf0ad7e84f8a08a8787e711ab1eb46f42f9e
Remove leading whitespace in gnu-debugaltlink-name.sh output

Currently, gnu-debugaltlink-name.sh prints leading whitespace:
...
$ echo \""$(./testsuite/scripts/gnu-debugaltlink-name.sh 1)"\"
"  3"
...

Fix this by using sed to extract the name from the readelf output.

With that fixed, we add quotes to gnu-debugaltlink-name.sh calls to prevent
"unary operator expected" errors.

2019-03-13  Tom de Vries  <tdevries@suse.de>

* testsuite/scripts/gnu-debugaltlink-name.sh: Remove leading whitespace.
* testsuite/dwz.tests/eu-strip-unstrip-multifile.sh: Guard
gnu-debugaltlink-name.sh call with quotes.
* testsuite/dwz.tests/multifile-name.sh: Same.
* testsuite/dwz.tests/multifile-relative.sh: Same.
* testsuite/dwz.tests/multifile.sh: Same.
testsuite/dwz.tests/eu-strip-unstrip-multifile.sh
testsuite/dwz.tests/multifile-name.sh
testsuite/dwz.tests/multifile-relative.sh
testsuite/dwz.tests/multifile.sh
testsuite/scripts/gnu-debugaltlink-name.sh
This page took 0.024687 seconds and 5 git commands to generate.