Print this page
10367 ld(1) tests should be a real test suite
10368 want an ld(1) regression test for i386 LD tls transition (10267)
@@ -22,17 +22,19 @@
# not change the default search path so we want to make sure that we use a
# different ISA (e.g. 32-bit vs 64-bit) from the binary we're generating.
#
unalias -a
+TESTDIR=$(dirname $0)
+
sh_path=
sh_lib="lib"
sh_lib64="$sh_lib/64"
sh_soname="libld.so.4"
-sh_cc="cc"
+sh_cc="gcc"
sh_cflags="-m32"
-sh_file="link.c"
+sh_file="${TESTDIR}/link.c"
sh_arg0=$(basename $0)
function fatal
{
local msg="$*"
@@ -71,12 +73,11 @@
else
fatal $4
fi
}
-sh_path=$1
-[[ -z "$1" ]] && fatal "<proto root>"
+sh_path=${1:-/}
validate
run "-Wl,-zassert-deflib" 0 \
"Testing basic compilation succeeds with warnings..." \
"failed to compile with warnings"