Mock Version: 2.16 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/libfaketime.spec'], chrootPath='/var/lib/mock/centos-stream-9-x86_64-1645694584.389612/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.2j9fo8xd:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.2j9fo8xd:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '987c6f43b20444ce8d7e7c4a9afe4ebe', '-D', '/var/lib/mock/centos-stream-9-x86_64-1645694584.389612/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.2j9fo8xd:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/libfaketime.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1642636800 Wrote: /builddir/build/SRPMS/libfaketime-0.9.8-13.el9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/libfaketime.spec'], chrootPath='/var/lib/mock/centos-stream-9-x86_64-1645694584.389612/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.2j9fo8xd:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.2j9fo8xd:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'b88720548a79408b8af43e2ef2051ca2', '-D', '/var/lib/mock/centos-stream-9-x86_64-1645694584.389612/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.2j9fo8xd:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/libfaketime.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1642636800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.MRluoX + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libfaketime-0.9.8 + /usr/bin/xz -dc /builddir/build/SOURCES/libfaketime-0.9.8.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libfaketime-0.9.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (libfaketime-0.9.8-FORCE_PTHREAD_NONVER.patch):' Patch #0 (libfaketime-0.9.8-FORCE_PTHREAD_NONVER.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/libfaketime.c + echo 'Patch #1 (libfaketime-symver.patch):' Patch #1 (libfaketime-symver.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/libfaketime.c + echo 'Patch #2 (libfaketime-fixgcc10.patch):' Patch #2 (libfaketime-fixgcc10.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file test/timetest.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.AjfByR + umask 022 + cd /builddir/build/BUILD + cd libfaketime-0.9.8 + cd src + FAKETIME_COMPILE_CFLAGS=BOGUS + echo force_monotonic force_monotonic + export FAKETIME_COMPILE_CFLAGS=-DFORCE_MONOTONIC_FIX + FAKETIME_COMPILE_CFLAGS=-DFORCE_MONOTONIC_FIX + '[' -DFORCE_MONOTONIC_FIX == BOGUS ']' + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wno-nonnull-compare -Wno-strict-aliasing' + make -j2 PREFIX=/usr LIBDIRNAME=/lib64/faketime all cc -o libfaketime.o -c -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wno-nonnull-compare -Wno-strict-aliasing -std=gnu99 -Wall -Wextra -Werror -Wno-nonnull-compare -DFAKE_PTHREAD -DFAKE_STAT -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'/usr'"' -DLIBDIRNAME='"'/lib64/faketime'"' -DFORCE_MONOTONIC_FIX libfaketime.c cc -o libfaketimeMT.o -c -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wno-nonnull-compare -Wno-strict-aliasing -std=gnu99 -Wall -Wextra -Werror -Wno-nonnull-compare -DFAKE_PTHREAD -DFAKE_STAT -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'/usr'"' -DLIBDIRNAME='"'/lib64/faketime'"' -DFORCE_MONOTONIC_FIX -DPTHREAD_SINGLETHREADED_TIME libfaketime.c cc -o faketime -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wno-nonnull-compare -Wno-strict-aliasing -std=gnu99 -Wall -Wextra -Werror -Wno-nonnull-compare -DFAKE_PTHREAD -DFAKE_STAT -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'/usr'"' -DLIBDIRNAME='"'/lib64/faketime'"' -DFORCE_MONOTONIC_FIX faketime.c -lpthread -Wl,--version-script=libfaketime.map -lrt cc -o libfaketime.so.1 -Wl,-soname,libfaketime.so.1 -lpthread -Wl,--version-script=libfaketime.map -shared libfaketime.o -ldl -lm -lrt cc -o libfaketimeMT.so.1 -Wl,-soname,libfaketimeMT.so.1 -lpthread -Wl,--version-script=libfaketime.map -shared libfaketimeMT.o -ldl -lm -lrt + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.DZVrxF + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64 ++ dirname /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64 + cd libfaketime-0.9.8 + make PREFIX=/usr DESTDIR=/builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64 LIBDIRNAME=/lib64/faketime install make -C src install make[1]: Entering directory '/builddir/build/BUILD/libfaketime-0.9.8/src' Copying the faketime libraries to /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/lib64/faketime and the faketime wrapper script to /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/bin ... install -dm0755 "/builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/lib64/faketime/" install -m0644 libfaketime.so.1 libfaketimeMT.so.1 "/builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/lib64/faketime/" install -Dm0755 faketime "/builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/bin/faketime" make[1]: Leaving directory '/builddir/build/BUILD/libfaketime-0.9.8/src' make -C man install make[1]: Entering directory '/builddir/build/BUILD/libfaketime-0.9.8/man' install -Dm0644 faketime.1 "/builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/share/man/man1/faketime.1" gzip -f "/builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/share/man/man1/faketime.1" make[1]: Leaving directory '/builddir/build/BUILD/libfaketime-0.9.8/man' install -dm0755 "/builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/share/doc/faketime/" install -m0644 README "/builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/share/doc/faketime/README" install -m0644 NEWS "/builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/share/doc/faketime/NEWS" + rm -r /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64//usr/share/doc/faketime + chmod a+rx /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64//usr/lib64/faketime/libfaketime.so.1 /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64//usr/lib64/faketime/libfaketimeMT.so.1 + /usr/lib/rpm/find-debuginfo.sh -j2 --strict-build-id -m -i --build-id-seed 0.9.8-13.el9 --unique-debug-suffix -0.9.8-13.el9.x86_64 --unique-debug-src-base libfaketime-0.9.8-13.el9.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/libfaketime-0.9.8 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/lib64/faketime/libfaketime.so.1 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/bin/faketime extracting debug info from /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/bin/faketime extracting debug info from /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/lib64/faketime/libfaketime.so.1 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/lib64/faketime/libfaketimeMT.so.1 extracting debug info from /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/lib64/faketime/libfaketimeMT.so.1 original debug info size: 712kB, size after compression: 676kB /usr/lib/rpm/sepdebugcrcfix: Updated 3 CRC32s, 0 CRC32s did match. 345 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.Qmptgg + umask 022 + cd /builddir/build/BUILD + cd libfaketime-0.9.8 + make -j2 -C test make: Entering directory '/builddir/build/BUILD/libfaketime-0.9.8/test' gcc -c -std=gnu99 -Wall -DFAKE_STAT -Werror -Wextra 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=657.987459987 When not faking monotonic time, timestamps should be different ref=658.995889044 - 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=1645694667 - 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: Thu Feb 24 09:24:29 2022 time(NULL) : Seconds since Epoch : 1645694669 ftime() : Current date and time: Thu Feb 24 09:24:29 2022 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Thu Feb 24 09:24:31 2022 Caught signal 10 clock_gettime(): Current date and time: Thu Feb 24 09:24:31 2022 stat(): mod. time of file './timetest': Thu Feb 24 09:24:25 2022 ============================================================================= 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': Thu Feb 24 09:24:25 2022 ============================================================================= 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 Caught signal 10 clock_gettime(): Current date and time: Tue Mar 29 14:14:18 2005 stat(): mod. time of file './timetest': Thu Feb 24 09:24:25 2022 ============================================================================= 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: Mon Feb 14 09:24:41 2022 time(NULL) : Seconds since Epoch : 1644830681 ftime() : Current date and time: Mon Feb 14 09:24:41 2022 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Mon Feb 14 09:24:43 2022 Caught signal 10 Caught signal 10 clock_gettime(): Current date and time: Mon Feb 14 09:24:43 2022 stat(): mod. time of file './timetest': Thu Feb 24 09:24:25 2022 ============================================================================= 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: Mon Feb 14 09:24:45 2022 time(NULL) : Seconds since Epoch : 1644830685 ftime() : Current date and time: Mon Feb 14 09:24:45 2022 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Mon Feb 14 09:24:47 2022 Caught signal 10 Caught signal 10 clock_gettime(): Current date and time: Mon Feb 14 09:24:47 2022 stat(): mod. time of file './timetest': Thu Feb 24 09:24:25 2022 ============================================================================= 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: Sun Mar 6 09:24:49 2022 time(NULL) : Seconds since Epoch : 1646558689 ftime() : Current date and time: Sun Mar 6 09:24:49 2022 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Sun Mar 6 09:24:51 2022 Caught signal 10 clock_gettime(): Current date and time: Sun Mar 6 09:24:51 2022 stat(): mod. time of file './timetest': Thu Feb 24 09:24:25 2022 ============================================================================= Running the 'date' command with 15 days negative offset specified $ LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="-15d" date Wed Feb 9 09:24:51 UTC 2022 ============================================================================= Testing finished. make: Leaving directory '/builddir/build/BUILD/libfaketime-0.9.8/test' + RPM_EC=0 ++ jobs -p + exit 0 Processing files: libfaketime-0.9.8-13.el9.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.KUwOmB + umask 022 + cd /builddir/build/BUILD + cd libfaketime-0.9.8 + DOCDIR=/builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/share/doc/libfaketime + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/share/doc/libfaketime + cp -pr README /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/share/doc/libfaketime + cp -pr NEWS /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/share/doc/libfaketime + cp -pr README.developers /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/share/doc/libfaketime + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.BCae1s + umask 022 + cd /builddir/build/BUILD + cd libfaketime-0.9.8 + LICENSEDIR=/builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/share/licenses/libfaketime + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/share/licenses/libfaketime + cp -pr COPYING /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64/usr/share/licenses/libfaketime + RPM_EC=0 ++ jobs -p + exit 0 Provides: faketime libfaketime = 0.9.8-13.el9 libfaketime(x86-64) = 0.9.8-13.el9 libfaketime.so.1()(64bit) libfaketime.so.1(GLIBC_2.2)(64bit) libfaketime.so.1(GLIBC_2.2.5)(64bit) libfaketime.so.1(GLIBC_2.3.2)(64bit) libfaketime.so.1(GLIBC_2.3.3)(64bit) libfaketimeMT.so.1()(64bit) libfaketimeMT.so.1(GLIBC_2.2)(64bit) libfaketimeMT.so.1(GLIBC_2.2.5)(64bit) libfaketimeMT.so.1(GLIBC_2.3.2)(64bit) libfaketimeMT.so.1(GLIBC_2.3.3)(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-x86-64.so.2()(64bit) ld-linux-x86-64.so.2(GLIBC_2.3)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.3.1)(64bit) libm.so.6()(64bit) rtld(GNU_HASH) Processing files: libfaketime-debugsource-0.9.8-13.el9.x86_64 Provides: libfaketime-debugsource = 0.9.8-13.el9 libfaketime-debugsource(x86-64) = 0.9.8-13.el9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: libfaketime-debuginfo-0.9.8-13.el9.x86_64 Provides: debuginfo(build-id) = 167143a5fb03af663121e8b723b33a8627b48ad9 debuginfo(build-id) = 5bfd4cb11b81aaba3ce8d69a9acbbf955f81b873 debuginfo(build-id) = 99141628917eeef74cc7fa907db748a38f3854e9 libfaketime-debuginfo = 0.9.8-13.el9 libfaketime-debuginfo(x86-64) = 0.9.8-13.el9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: libfaketime-debugsource(x86-64) = 0.9.8-13.el9 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64 Wrote: /builddir/build/RPMS/libfaketime-0.9.8-13.el9.x86_64.rpm Wrote: /builddir/build/RPMS/libfaketime-debuginfo-0.9.8-13.el9.x86_64.rpm Wrote: /builddir/build/RPMS/libfaketime-debugsource-0.9.8-13.el9.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.Cwusd9 + umask 022 + cd /builddir/build/BUILD + cd libfaketime-0.9.8 + /usr/bin/rm -rf /builddir/build/BUILDROOT/libfaketime-0.9.8-13.el9.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0