starting phase `set-SOURCE-DATE-EPOCH' phase `set-SOURCE-DATE-EPOCH' succeeded after 0.0 seconds starting phase `set-paths' environment variable `PATH' set to `/gnu/store/jz3bgfxid5dinlnzn2fvb7jpznk69r5n-perl-5.34.0/bin:/gnu/store/i5rvjxm9hzpf2dn4k77177b3g41glnav-coreutils-8.32/bin:/gnu/store/hqysqhh80g7qy8287b8p2gwz0379vh50-tar-1.34/bin:/gnu/store/8rvnivj15gmirawhikgbjaang5b4w779-gzip-1.10/bin:/gnu/store/64zk0izmaframq6cd0xlsmk0rxn3zc52-bzip2-1.0.8/bin:/gnu/store/z6bw81zw5b5jm3p02y906p0wnjbjqa7n-xz-5.2.5/bin:/gnu/store/jfmrxybjkd0nvh1n34hbzv0lwsnmxz1v-file-5.39/bin:/gnu/store/49j4cjqc8sckyh4qhf9j9dmc6anc8wk9-diffutils-3.8/bin:/gnu/store/znjj5y98lvi46fll85qg22ngz966gx1d-patch-2.7.6/bin:/gnu/store/yq3xalg1p2p5p5hfpw4v5jx0v86qw45w-findutils-4.8.0/bin:/gnu/store/bgyr8c7bl1sqhpapm2kghiya0k6zvi51-gawk-5.1.0/bin:/gnu/store/dsldg7i4y6hxdknh7cv93rbxbp17xm93-sed-4.8/bin:/gnu/store/4znchc8whjbs50mvxgc0skmkvyhy9xk1-grep-3.6/bin:/gnu/store/wllq3y3sl5bldm9vsx2fcwhcmks4i9ar-coreutils-8.32/bin:/gnu/store/zyhbjfyqh10yiw1dw1x1i7n70jm9ygdn-make-4.3/bin:/gnu/store/2an4h5ndc22dv62q3l985ciq862q4bj7-bash-minimal-5.1.8/bin:/gnu/store/g58zxpycy64m790vwjlzpadmbn065fia-ld-wrapper-0/bin:/gnu/store/cr38d3gvf52ckns2b01lwgw86hk3mvcc-binutils-2.37/bin:/gnu/store/h88kd46c8br0wc4i6hq19cjby081ina4-gcc-10.3.0/bin:/gnu/store/mjdjgiz9k5rrbj440r16z6p5g33nr7d7-glibc-2.33/bin:/gnu/store/mjdjgiz9k5rrbj440r16z6p5g33nr7d7-glibc-2.33/sbin' environment variable `PERL5LIB' set to `/gnu/store/jz3bgfxid5dinlnzn2fvb7jpznk69r5n-perl-5.34.0/lib/perl5/site_perl' environment variable `BASH_LOADABLES_PATH' unset environment variable `C_INCLUDE_PATH' set to `/gnu/store/64zk0izmaframq6cd0xlsmk0rxn3zc52-bzip2-1.0.8/include:/gnu/store/z6bw81zw5b5jm3p02y906p0wnjbjqa7n-xz-5.2.5/include:/gnu/store/jfmrxybjkd0nvh1n34hbzv0lwsnmxz1v-file-5.39/include:/gnu/store/bgyr8c7bl1sqhpapm2kghiya0k6zvi51-gawk-5.1.0/include:/gnu/store/zyhbjfyqh10yiw1dw1x1i7n70jm9ygdn-make-4.3/include:/gnu/store/cr38d3gvf52ckns2b01lwgw86hk3mvcc-binutils-2.37/include:/gnu/store/h88kd46c8br0wc4i6hq19cjby081ina4-gcc-10.3.0/include:/gnu/store/mjdjgiz9k5rrbj440r16z6p5g33nr7d7-glibc-2.33/include:/gnu/store/k8xlwnnmhgmvzyxxfjq3z3fci73zx7x9-linux-libre-headers-5.10.35/include' environment variable `CPLUS_INCLUDE_PATH' set to `/gnu/store/64zk0izmaframq6cd0xlsmk0rxn3zc52-bzip2-1.0.8/include:/gnu/store/z6bw81zw5b5jm3p02y906p0wnjbjqa7n-xz-5.2.5/include:/gnu/store/jfmrxybjkd0nvh1n34hbzv0lwsnmxz1v-file-5.39/include:/gnu/store/bgyr8c7bl1sqhpapm2kghiya0k6zvi51-gawk-5.1.0/include:/gnu/store/zyhbjfyqh10yiw1dw1x1i7n70jm9ygdn-make-4.3/include:/gnu/store/cr38d3gvf52ckns2b01lwgw86hk3mvcc-binutils-2.37/include:/gnu/store/h88kd46c8br0wc4i6hq19cjby081ina4-gcc-10.3.0/include/c++:/gnu/store/h88kd46c8br0wc4i6hq19cjby081ina4-gcc-10.3.0/include:/gnu/store/mjdjgiz9k5rrbj440r16z6p5g33nr7d7-glibc-2.33/include:/gnu/store/k8xlwnnmhgmvzyxxfjq3z3fci73zx7x9-linux-libre-headers-5.10.35/include' environment variable `LIBRARY_PATH' set to `/gnu/store/jz3bgfxid5dinlnzn2fvb7jpznk69r5n-perl-5.34.0/lib:/gnu/store/64zk0izmaframq6cd0xlsmk0rxn3zc52-bzip2-1.0.8/lib:/gnu/store/z6bw81zw5b5jm3p02y906p0wnjbjqa7n-xz-5.2.5/lib:/gnu/store/jfmrxybjkd0nvh1n34hbzv0lwsnmxz1v-file-5.39/lib:/gnu/store/bgyr8c7bl1sqhpapm2kghiya0k6zvi51-gawk-5.1.0/lib:/gnu/store/cr38d3gvf52ckns2b01lwgw86hk3mvcc-binutils-2.37/lib:/gnu/store/mjdjgiz9k5rrbj440r16z6p5g33nr7d7-glibc-2.33/lib:/gnu/store/88bdm10sayqjnggrxlbdmk3rv1qqdrvl-glibc-2.33-static/lib:/gnu/store/y4x3whxg8i1p9w9vy67lz3cw8xfil8bh-glibc-utf8-locales-2.33/lib' environment variable `GUIX_LOCPATH' set to `/gnu/store/y4x3whxg8i1p9w9vy67lz3cw8xfil8bh-glibc-utf8-locales-2.33/lib/locale' phase `set-paths' succeeded after 0.0 seconds starting phase `install-locale' using 'en_US.utf8' locale for category "LC_ALL" phase `install-locale' succeeded after 0.0 seconds starting phase `unpack' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/README.packagers' -> `./README.packagers' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/NEWS' -> `./NEWS' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/TODO' -> `./TODO' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/.gitignore' -> `./.gitignore' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/README.developers' -> `./README.developers' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/README' -> `./README' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/README.OSX' -> `./README.OSX' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/COPYING' -> `./COPYING' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/.travis.yml' -> `./.travis.yml' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/Makefile' -> `./Makefile' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/.github/workflows/make-test.yml' -> `./.github/workflows/make-test.yml' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/src/faketime.c' -> `./src/faketime.c' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/src/time_ops.h' -> `./src/time_ops.h' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/src/timeprivacy' -> `./src/timeprivacy' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/src/libfaketime.map' -> `./src/libfaketime.map' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/src/Makefile.OSX' -> `./src/Makefile.OSX' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/src/sunos_endian.h' -> `./src/sunos_endian.h' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/src/libfaketime.c' -> `./src/libfaketime.c' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/src/faketime_common.h' -> `./src/faketime_common.h' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/src/Makefile' -> `./src/Makefile' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/src/uthash.h' -> `./src/uthash.h' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/man/Makefile.OSX' -> `./man/Makefile.OSX' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/man/faketime.1' -> `./man/faketime.1' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/man/Makefile' -> `./man/Makefile' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/test/README-testframe.txt' -> `./test/README-testframe.txt' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/test/timetest.c' -> `./test/timetest.c' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/test/testframe.sh' -> `./test/testframe.sh' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/test/test_OSX.sh' -> `./test/test_OSX.sh' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/test/getrandom_test.c' -> `./test/getrandom_test.c' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/test/Makefile.OSX' -> `./test/Makefile.OSX' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/test/test.sh' -> `./test/test.sh' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/test/testframe.inc' -> `./test/testframe.inc' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/test/Makefile' -> `./test/Makefile' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/test/randomtest.sh' -> `./test/randomtest.sh' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/test/functests/test_exclude_mono.sh' -> `./test/functests/test_exclude_mono.sh' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/test/functests/dont_test_false.sh' -> `./test/functests/dont_test_false.sh' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/test/functests/test_walkone.sh' -> `./test/functests/test_walkone.sh' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/test/functests/test_true.sh' -> `./test/functests/test_true.sh' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/test/functests/test_null.sh' -> `./test/functests/test_null.sh' `/gnu/store/14zh0c6xpxfai3k8rilpj964w57qx7jz-libfaketime-0.9.9-checkout/test/functests/common.inc' -> `./test/functests/common.inc' phase `unpack' succeeded after 0.0 seconds starting phase `embed-date-reference' phase `embed-date-reference' succeeded after 0.0 seconds starting phase `bootstrap' no 'configure.ac' or anything like that, doing nothing phase `bootstrap' succeeded after 0.0 seconds starting phase `patch-usr-bin-file' phase `patch-usr-bin-file' succeeded after 0.0 seconds starting phase `patch-source-shebangs' patch-shebang: ./src/timeprivacy: changing `/bin/bash' to `/gnu/store/2an4h5ndc22dv62q3l985ciq862q4bj7-bash-minimal-5.1.8/bin/bash' patch-shebang: ./test/randomtest.sh: changing `/bin/sh' to `/gnu/store/2an4h5ndc22dv62q3l985ciq862q4bj7-bash-minimal-5.1.8/bin/sh' patch-shebang: ./test/test.sh: changing `/bin/sh' to `/gnu/store/2an4h5ndc22dv62q3l985ciq862q4bj7-bash-minimal-5.1.8/bin/sh' patch-shebang: ./test/test_OSX.sh: changing `/bin/sh' to `/gnu/store/2an4h5ndc22dv62q3l985ciq862q4bj7-bash-minimal-5.1.8/bin/sh' patch-shebang: ./test/testframe.sh: changing `/bin/bash' to `/gnu/store/2an4h5ndc22dv62q3l985ciq862q4bj7-bash-minimal-5.1.8/bin/bash' phase `patch-source-shebangs' succeeded after 0.0 seconds starting phase `configure' phase `configure' succeeded after 0.0 seconds starting phase `patch-generated-file-shebangs' phase `patch-generated-file-shebangs' succeeded after 0.0 seconds starting phase `build' make -C src all make[1]: Entering directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source/src' gcc -o libfaketime.o -c -std=gnu99 -Wall -Wextra -Werror -Wno-nonnull-compare -DFAKE_PTHREAD -DFAKE_STAT -DFAKE_UTIME -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'/gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9'"' -DLIBDIRNAME='"'/lib/faketime'"' -DFORCE_MONOTONIC_FIX libfaketime.c gcc -o libfaketimeMT.o -c -std=gnu99 -Wall -Wextra -Werror -Wno-nonnull-compare -DFAKE_PTHREAD -DFAKE_STAT -DFAKE_UTIME -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'/gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9'"' -DLIBDIRNAME='"'/lib/faketime'"' -DFORCE_MONOTONIC_FIX -DPTHREAD_SINGLETHREADED_TIME libfaketime.c gcc -o faketime -std=gnu99 -Wall -Wextra -Werror -Wno-nonnull-compare -DFAKE_PTHREAD -DFAKE_STAT -DFAKE_UTIME -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'/gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9'"' -DLIBDIRNAME='"'/lib/faketime'"' -DFORCE_MONOTONIC_FIX faketime.c -lpthread -Wl,--version-script=libfaketime.map -lrt gcc -o libfaketime.so.1 -Wl,-soname,libfaketime.so.1 -lpthread -Wl,--version-script=libfaketime.map -shared libfaketime.o -ldl -lm -lrt gcc -o libfaketimeMT.so.1 -Wl,-soname,libfaketimeMT.so.1 -lpthread -Wl,--version-script=libfaketime.map -shared libfaketimeMT.o -ldl -lm -lrt make[1]: Leaving directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source/src' phase `build' succeeded after 0.7 seconds starting phase `pre-check' phase `pre-check' succeeded after 0.0 seconds starting phase `check' make -C src all make[1]: Entering directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source/src' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source/src' make -C test all make[1]: Entering directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source/test' gcc -c -std=gnu99 -Wall -DFAKE_STAT -Werror -Wextra -DFORCE_MONOTONIC_FIX timetest.c ./testframe.sh functests # Begin Test Suites in functests # Begin functests/test_exclude_mono.sh # PLATFORM=linuxlike gcc -o timetest timetest.o -lrt -lpthread out=628430.043892886 When not faking monotonic time, timestamps should be different ref=628431.071020238 - ok # functests/test_exclude_mono.sh summary: 1 succeeded, 0 failed # End functests/test_exclude_mono.sh - OK # Begin functests/test_null.sh out=0 () ref=1640190287 - ok # functests/test_null.sh summary: 1 succeeded, 0 failed # End functests/test_null.sh - OK # Begin functests/test_true.sh # functests/test_true.sh summary: 1 succeeded, 0 failed # End functests/test_true.sh - OK # Begin functests/test_walkone.sh # PLATFORM=linuxlike out=1 (secs since Epoch) - ok out=2 (secs since Epoch) - ok out=4 (secs since Epoch) - ok out=8 (secs since Epoch) - ok out=16 (secs since Epoch) - ok out=32 (secs since Epoch) - ok out=64 (secs since Epoch) - ok out=128 (secs since Epoch) - ok out=256 (secs since Epoch) - ok out=512 (secs since Epoch) - ok out=1024 (secs since Epoch) - ok out=2048 (secs since Epoch) - ok out=4096 (secs since Epoch) - ok out=8192 (secs since Epoch) - ok out=16384 (secs since Epoch) - ok out=32768 (secs since Epoch) - ok out=65536 (secs since Epoch) - ok out=131072 (secs since Epoch) - ok out=262144 (secs since Epoch) - ok out=524288 (secs since Epoch) - ok out=1048576 (secs since Epoch) - ok out=2097152 (secs since Epoch) - ok out=4194304 (secs since Epoch) - ok out=8388608 (secs since Epoch) - ok out=16777216 (secs since Epoch) - ok out=33554432 (secs since Epoch) - ok out=67108864 (secs since Epoch) - ok out=134217728 (secs since Epoch) - ok out=268435456 (secs since Epoch) - ok out=536870912 (secs since Epoch) - ok out=1073741824 (secs since Epoch) - ok # functests/test_walkone.sh summary: 31 succeeded, 0 failed # End functests/test_walkone.sh - OK # Test Suites summary: 4 succeeded, 0 failed # End Test Suites - OK Running the test program with no faked time specified $ LD_PRELOAD=../src/libfaketime.so.1 ./timetest pthread_cond_timedwait: CLOCK_REALTIME test (Intentionally sleeping 1 second...) pthread_cond_timedwait: CLOCK_MONOTONIC test (Intentionally sleeping 1 second..., see docs about CLOCK_MONOTONIC test) Blocking signal 10 time() : Current date and time: Wed Dec 22 16:24:49 2021 time(NULL) : Seconds since Epoch : 1640190289 ftime() : Current date and time: Wed Dec 22 16:24:49 2021 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Wed Dec 22 16:24:51 2021 Caught signal 10 clock_gettime(): Current date and time: Wed Dec 22 16:24:51 2021 stat(): mod. time of file './timetest': Wed Dec 22 16:24:45 2021 ============================================================================= Running the test program with absolute date 2003-01-01 10:00:05 specified $ LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="2003-01-01 10:00:05" ./timetest pthread_cond_timedwait: CLOCK_REALTIME test (Intentionally sleeping 1 second...) pthread_cond_timedwait: CLOCK_MONOTONIC test (Intentionally sleeping 1 second..., see docs about CLOCK_MONOTONIC test) Blocking signal 10 time() : Current date and time: Wed Jan 1 10:00:05 2003 time(NULL) : Seconds since Epoch : 1041415205 ftime() : Current date and time: Wed Jan 1 10:00:05 2003 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Wed Jan 1 10:00:05 2003 Caught signal 10 Caught signal 10 clock_gettime(): Current date and time: Wed Jan 1 10:00:05 2003 stat(): mod. time of file './timetest': Wed Dec 22 16:24:45 2021 ============================================================================= Running the test program with START date @2005-03-29 14:14:14 specified $ LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="@2005-03-29 14:14:14" ./timetest pthread_cond_timedwait: CLOCK_REALTIME test (Intentionally sleeping 1 second...) pthread_cond_timedwait: CLOCK_MONOTONIC test (Intentionally sleeping 1 second..., see docs about CLOCK_MONOTONIC test) Blocking signal 10 time() : Current date and time: Tue Mar 29 14:14:16 2005 time(NULL) : Seconds since Epoch : 1112105656 ftime() : Current date and time: Tue Mar 29 14:14:16 2005 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Tue Mar 29 14:14:18 2005 Caught signal 10 clock_gettime(): Current date and time: Tue Mar 29 14:14:18 2005 stat(): mod. time of file './timetest': Wed Dec 22 16:24:45 2021 ============================================================================= Running the test program with 10 days negative offset specified LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="-10d" ./timetest pthread_cond_timedwait: CLOCK_REALTIME test (Intentionally sleeping 1 second...) pthread_cond_timedwait: CLOCK_MONOTONIC test (Intentionally sleeping 1 second..., see docs about CLOCK_MONOTONIC test) Blocking signal 10 time() : Current date and time: Sun Dec 12 16:25:01 2021 time(NULL) : Seconds since Epoch : 1639326301 ftime() : Current date and time: Sun Dec 12 16:25:01 2021 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Sun Dec 12 16:25:03 2021 Caught signal 10 clock_gettime(): Current date and time: Sun Dec 12 16:25:03 2021 stat(): mod. time of file './timetest': Wed Dec 22 16:24:45 2021 ============================================================================= Running the test program with 10 days negative offset specified, and FAKE_STAT disabled $ LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="-10d" NO_FAKE_STAT=1 ./timetest pthread_cond_timedwait: CLOCK_REALTIME test (Intentionally sleeping 1 second...) pthread_cond_timedwait: CLOCK_MONOTONIC test (Intentionally sleeping 1 second..., see docs about CLOCK_MONOTONIC test) Blocking signal 10 time() : Current date and time: Sun Dec 12 16:25:05 2021 time(NULL) : Seconds since Epoch : 1639326305 ftime() : Current date and time: Sun Dec 12 16:25:05 2021 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Sun Dec 12 16:25:07 2021 Caught signal 10 clock_gettime(): Current date and time: Sun Dec 12 16:25:07 2021 stat(): mod. time of file './timetest': Wed Dec 22 16:24:45 2021 ============================================================================= Running the test program with 10 days positive offset specified, and speed-up factor $ LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="+10d x1" ./timetest pthread_cond_timedwait: CLOCK_REALTIME test (Intentionally sleeping 1 second...) pthread_cond_timedwait: CLOCK_MONOTONIC test (Intentionally sleeping 1 second..., see docs about CLOCK_MONOTONIC test) Blocking signal 10 time() : Current date and time: Sat Jan 1 16:25:09 2022 time(NULL) : Seconds since Epoch : 1641054309 ftime() : Current date and time: Sat Jan 1 16:25:09 2022 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Sat Jan 1 16:25:07 2022 Caught signal 10 Caught signal 10 clock_gettime(): Current date and time: Sat Jan 1 16:25:07 2022 stat(): mod. time of file './timetest': Wed Dec 22 16:24:45 2021 ============================================================================= Running the 'date' command with 15 days negative offset specified $ LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="-15d" date Tue Dec 7 04:25:11 PM UTC 2021 ============================================================================= Testing finished. make[1]: Leaving directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source/test' phase `check' succeeded after 26.5 seconds starting phase `install' make -C src install make[1]: Entering directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source/src' Copying the faketime libraries to /gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9/lib/faketime and the faketime wrapper script to /gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9/bin ... install -dm0755 "/gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9/lib/faketime/" install -m0644 libfaketime.so.1 libfaketimeMT.so.1 "/gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9/lib/faketime/" install -Dm0755 faketime "/gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9/bin/faketime" make[1]: Leaving directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source/src' make -C man install make[1]: Entering directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source/man' install -Dm0644 faketime.1 "/gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9/share/man/man1/faketime.1" gzip -f "/gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9/share/man/man1/faketime.1" make[1]: Leaving directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source/man' install -dm0755 "/gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9/share/doc/faketime/" install -m0644 README "/gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9/share/doc/faketime/README" install -m0644 NEWS "/gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9/share/doc/faketime/NEWS" phase `install' succeeded after 0.1 seconds starting phase `patch-shebangs' phase `patch-shebangs' succeeded after 0.0 seconds starting phase `strip' stripping binaries in "/gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9/lib" with "strip" and flags ("--strip-unneeded" "--enable-deterministic-archives") stripping binaries in "/gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9/bin" with "strip" and flags ("--strip-unneeded" "--enable-deterministic-archives") phase `strip' succeeded after 0.0 seconds starting phase `validate-runpath' validating RUNPATH of 2 binaries in "/gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9/lib"... validating RUNPATH of 1 binaries in "/gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9/bin"... phase `validate-runpath' succeeded after 0.0 seconds starting phase `validate-documentation-location' phase `validate-documentation-location' succeeded after 0.0 seconds starting phase `delete-info-dir-file' phase `delete-info-dir-file' succeeded after 0.0 seconds starting phase `patch-dot-desktop-files' phase `patch-dot-desktop-files' succeeded after 0.0 seconds starting phase `make-dynamic-linker-cache' created '/gnu/store/bs2w5psnbw9pi3nqxczyja8pyxqdc0yc-libfaketime-0.9.9/etc/ld.so.cache' from 2 library search path entries phase `make-dynamic-linker-cache' succeeded after 0.0 seconds starting phase `install-license-files' installing 1 license files from '.' phase `install-license-files' succeeded after 0.0 seconds starting phase `reset-gzip-timestamps' phase `reset-gzip-timestamps' succeeded after 0.0 seconds starting phase `compress-documentation' phase `compress-documentation' succeeded after 0.0 seconds