test-xalloc-die: fix test for mingw
authorEric Blake <ebb9@byu.net>
Sat, 5 Dec 2009 16:24:54 +0000 (09:24 -0700)
committerEric Blake <ebb9@byu.net>
Sat, 5 Dec 2009 16:42:49 +0000 (09:42 -0700)
commita4cfedb07defccd91a1b8290ab57be337bfd04b4
treeb7a760560f2c1cbfe202b7231e742b714111431a
parente4488f1827bff93fe4c251a202f47e715ca1ed9e
test-xalloc-die: fix test for mingw

When cross-compiling on mingw to target mingw, argv[0] still includes
a .exe suffix.  Rather than worry about ${EXEEXT}, just add a sed
post-process.  Also, simplify the script by using tests/init.sh.

* modules/xalloc-die-tests (Files): Add tests/init.sh.
* tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
directory and .exe suffix off argv[0] output.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
modules/xalloc-die-tests
tests/test-xalloc-die.sh