Drop duplicate library constructor preload tests

These tests are already taken care of with the snippet-driven library
constructor tests.
This commit is contained in:
Daniel Kahn Gillmor
2021-02-25 20:27:30 -05:00
parent 17522c5ba1
commit 7b1d0958b5
3 changed files with 2 additions and 18 deletions

View File

@@ -27,10 +27,10 @@ functest:
%_test: %_test.c
${CC} -o $@ ${CFLAGS} $<
randomtest: getrandom_test use_lib_getrandom libgetrandom.so repeat_random getentropy_test
randomtest: getrandom_test repeat_random getentropy_test
./randomtest.sh
getpidtest: use_lib_getpid libgetpid.so
getpidtest:
./pidtest.sh
syscalltest: syscall_test

View File

@@ -17,10 +17,3 @@ if [ $output != 13 ]; then
printf >&2 'Failed to enforce a rigid response to getpid()\n'
exit 2
fi
printf 'testing shared object with getpid() in library constructor\n'
LD_LIBRARY_PATH=. ./use_lib_getpid
printf 'now with LD_PRELOAD and FAKETIME_FAKEPID\n'
FAKETIME_FAKEPID=25 LD_PRELOAD="$FTPL" LD_LIBRARY_PATH=. ./use_lib_getpid
printf 'now with LD_PRELOAD without FAKETIME_FAKEPID\n'
LD_PRELOAD="$FTPL" LD_LIBRARY_PATH=. ./use_lib_getpid

View File

@@ -34,15 +34,6 @@ for iface in getrandom getentropy; do
rm -f "${iface}.alone" "${iface}.preload" "${iface}.preload.seed0" "${iface}.preload.seed1" "${iface}.preload.seed2"
done
printf 'testing shared object with getrandom() in library constructor\n'
LD_LIBRARY_PATH=. ./use_lib_getrandom
printf 'now with LD_PRELOAD and FAKERANDOM_SEED\n'
FAKERANDOM_SEED=0x0000000000000000 LD_PRELOAD="$FTPL" LD_LIBRARY_PATH=. ./use_lib_getrandom
# this demonstrates the crasher from https://github.com/wolfcw/libfaketime/issues/295
printf 'now with LD_PRELOAD without FAKERANDOM_SEED\n'
LD_PRELOAD="$FTPL" LD_LIBRARY_PATH=. ./use_lib_getrandom
FAKERANDOM_SEED=0xDEADBEEFDEADBEEF LD_PRELOAD="$FTPL" ./repeat_random 3 5 > repeat3x5
FAKERANDOM_SEED=0xDEADBEEFDEADBEEF LD_PRELOAD="$FTPL" ./repeat_random 5 3 > repeat5x3