diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2021-02-25 14:07:17 -0500 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2021-02-25 23:17:25 -0500 |
commit | 17522c5ba124c5941e2cd3832a68722d64c6bf4b (patch) | |
tree | cdf572286861a1cf1df49a3fa4a06a400259bd5c /test/randomtest.sh | |
parent | 01f6bc76c9613db70c3ef41c2c62ae3fc8d2d431 (diff) | |
download | libfaketime-17522c5ba124c5941e2cd3832a68722d64c6bf4b.tar.gz |
Overhaul testing library constructors
We want to make it easier to test a bunch of different functions that
might be invoked in constructors of other libraries.
It seems conceivable that with these snippets, we could design other
tests that also work across a wide range of intercepted functions.
Diffstat (limited to 'test/randomtest.sh')
-rwxr-xr-x | test/randomtest.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/randomtest.sh b/test/randomtest.sh index 4055188..1ba86e3 100755 --- a/test/randomtest.sh +++ b/test/randomtest.sh @@ -35,12 +35,12 @@ for iface in getrandom getentropy; do done printf 'testing shared object with getrandom() in library constructor\n' -LD_LIBRARY_PATH=. ./use_lib_random +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_random +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_random +LD_PRELOAD="$FTPL" LD_LIBRARY_PATH=. ./use_lib_getrandom FAKERANDOM_SEED=0xDEADBEEFDEADBEEF LD_PRELOAD="$FTPL" ./repeat_random 3 5 > repeat3x5 |