diff options
author | Gary V. Vaughan <gary@gnu.org> | 2013-10-30 17:21:38 +1300 |
---|---|---|
committer | Gary V. Vaughan <gary@gnu.org> | 2014-01-02 12:06:29 +1300 |
commit | cc189e7daf95b91d22c585b2cdf6b787c8e3c3c6 (patch) | |
tree | f3f37dea7d4dc0aeb7d081efe3557c3461e6c32c /tests/darwin.at | |
parent | 83405160afeb97ffd4430fd37c8edd7eeb703366 (diff) | |
download | libtool-cc189e7daf95b91d22c585b2cdf6b787c8e3c3c6.tar.gz |
tests: use $SED throughout.
Trust the user, and use $SED from TESTS_ENVIRONMENT uniformly.
Hardcoding 'sed' for "simple" edits is a premature optimisation.
* tests/cdemo.at, tests/cmdline_wrap.at, tests/cwrapper.at,
tests/darwin.at, tests/demo.at, tests/duplicate_conv.at,
tests/duplicate_members.at, tests/execute-mode.at, tests/export.at,
tests/inherited_flags.at, tests/install.at, tests/libtoolize.at,
tests/mdemo.at, tests/need_lib_prefix.at, tests/old-m4-iface.at,
tests/sysroot.at, tests/tagdemo.at, tests/testsuite.at: Replace all
hardcoded sed invocations with $SED.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Diffstat (limited to 'tests/darwin.at')
-rw-r--r-- | tests/darwin.at | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/darwin.at b/tests/darwin.at index 3ace4937..0d6e9139 100644 --- a/tests/darwin.at +++ b/tests/darwin.at @@ -74,7 +74,7 @@ if test $# != 1; then exit 1 fi -echo $1 | sed "s|^.*/||" +echo $1 | $SED "s|^.*/||" ]]) chmod +x bin/basename @@ -114,7 +114,7 @@ cp bar.c baz.c objects= for obj in 1 2 3 4 5 6 7 8; do - sed "s/foo/foo$obj/" < foo.c > foo$obj.c + $SED "s/foo/foo$obj/" < foo.c > foo$obj.c AT_CHECK([$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c foo$obj.c], [], [ignore], [ignore]) objects="$objects foo$obj.lo" |