# HG changeset patch # User Jim Meyering # Date 1258443778 -3600 # Node ID 6dcb7b4b0713ba78cd2c2b927f600527bdf6b7e9 # Parent 3b1b1edbbf68be62ef06105b75179da7764d771a test-xalloc-die.sh: fix a portability bug * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die. Instead, set PATH to start with "." and invoke via "test-xalloc-die". Otherwise, argv[0] (as often seen in diagnostics) would be too system-dependent, sometimes with, and sometimes without the leading "./". diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2009-11-17 Jim Meyering + test-xalloc-die.sh: fix a portability bug + * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die. + Instead, set PATH to start with "." and invoke via "test-xalloc-die". + Otherwise, argv[0] (as often seen in diagnostics) would be too + system-dependent, sometimes with, and sometimes without the leading "./". + version-etc-fsf: relax license to LGPLv3+ * modules/version-etc-fsf (License): Relax license. diff --git a/tests/test-xalloc-die.sh b/tests/test-xalloc-die.sh --- a/tests/test-xalloc-die.sh +++ b/tests/test-xalloc-die.sh @@ -13,7 +13,9 @@ fi tmpfiles="t-xalloc-die.tmp" -./test-xalloc-die${EXEEXT} 2> t-xalloc-die.tmp +PATH="$PATH:." +export PATH +test-xalloc-die${EXEEXT} 2> t-xalloc-die.tmp case $? in 1) ;; *) (exit 1); exit 1 ;;