Mock Version: 3.0 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-1654600125.824568/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.n2v1b7y5:/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.n2v1b7y5:/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', '8f1fe2fe8b6c46b8b3de5ed9302d0ac2', '-D', '/var/lib/mock/centos-stream-9-x86_64-1654600125.824568/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.n2v1b7y5:/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=1652140800 Wrote: /builddir/build/SRPMS/libfaketime-0.9.10-1.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-1654600125.824568/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.n2v1b7y5:/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.n2v1b7y5:/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', '6ac7d0e81e884464b10a32c9c0500490', '-D', '/var/lib/mock/centos-stream-9-x86_64-1654600125.824568/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.n2v1b7y5:/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=1652140800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.14f3R8 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libfaketime-0.9.10 + /usr/bin/gzip -dc /builddir/build/SOURCES/libfaketime-0.9.10.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libfaketime-0.9.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (libfaketime-backports.patch):' Patch #0 (libfaketime-backports.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file NEWS patching file src/libfaketime.c patching file src/libfaketime.c patching file src/libfaketime.c patching file test/Makefile patching file test/Makefile patching file test/Makefile Hunk #1 succeeded at 73 (offset 3 lines). patching file test/Makefile patching file test/libmallocintercept.c patching file test/test.sh patching file src/Makefile patching file src/libfaketime.c patching file src/Makefile patching file test/libmallocintercept.c patching file test/Makefile patching file test/libmallocintercept.c patching file test/libmallocintercept.c patching file test/libmallocintercept.c patching file test/libmallocintercept.c patching file src/libfaketime.c patching file test/test.sh + 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 Hunk #1 succeeded at 1966 (offset 30 lines). Hunk #2 succeeded at 1989 (offset 30 lines). Hunk #3 succeeded at 2063 (offset 30 lines). Hunk #4 succeeded at 2084 (offset 30 lines). Hunk #5 succeeded at 2102 (offset 30 lines). Hunk #6 succeeded at 3562 (offset 99 lines). Hunk #7 succeeded at 3599 (offset 93 lines). Hunk #8 succeeded at 3773 (offset 155 lines). + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.9Bzn6K + umask 022 + cd /builddir/build/BUILD + cd libfaketime-0.9.10 + 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_UTIME -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_UTIME -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_UTIME -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.9umVUH + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64 ++ dirname /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64 + cd libfaketime-0.9.10 + make PREFIX=/usr DESTDIR=/builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64 LIBDIRNAME=/lib64/faketime install make -C src install make[1]: Entering directory '/builddir/build/BUILD/libfaketime-0.9.10/src' Copying the faketime libraries to /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/lib64/faketime and the faketime wrapper script to /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/bin ... install -dm0755 "/builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/lib64/faketime/" install -m0644 libfaketime.so.1 libfaketimeMT.so.1 "/builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/lib64/faketime/" install -Dm0755 faketime "/builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/bin/faketime" make[1]: Leaving directory '/builddir/build/BUILD/libfaketime-0.9.10/src' make -C man install make[1]: Entering directory '/builddir/build/BUILD/libfaketime-0.9.10/man' install -Dm0644 faketime.1 "/builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/share/man/man1/faketime.1" gzip -nf "/builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/share/man/man1/faketime.1" make[1]: Leaving directory '/builddir/build/BUILD/libfaketime-0.9.10/man' install -dm0755 "/builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/share/doc/faketime/" install -m0644 README "/builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/share/doc/faketime/README" install -m0644 NEWS "/builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/share/doc/faketime/NEWS" + rm -r /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64//usr/share/doc/faketime + chmod a+rx /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64//usr/lib64/faketime/libfaketime.so.1 /builddir/build/BUILDROOT/libfaketime-0.9.10-1.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.10-1.el9 --unique-debug-suffix -0.9.10-1.el9.x86_64 --unique-debug-src-base libfaketime-0.9.10-1.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.10 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/bin/faketime explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/lib64/faketime/libfaketime.so.1 extracting debug info from /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/bin/faketime extracting debug info from /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/lib64/faketime/libfaketime.so.1 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/lib64/faketime/libfaketimeMT.so.1 extracting debug info from /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/lib64/faketime/libfaketimeMT.so.1 original debug info size: 980kB, size after compression: 924kB /usr/lib/rpm/sepdebugcrcfix: Updated 3 CRC32s, 0 CRC32s did match. 403 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.xX2lIs + umask 022 + cd /builddir/build/BUILD + cd libfaketime-0.9.10 + make -j2 -C test make: Entering directory '/builddir/build/BUILD/libfaketime-0.9.10/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 -shared -o libmallocintercept.so -fpic -std=gnu99 -Wall -DFAKE_STAT -Werror -Wextra libmallocintercept.c gcc -o timetest timetest.o -lrt -lpthread out=197.365199571 When not faking monotonic time, timestamps should be different ref=198.374365417 - 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=1654600198 - 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...) (If this test hangs for more than a few seconds, please report your glibc version and system details as FORCE_MONOTONIC_FIX issue at https://github.com/wolfcw/libfaketime) Blocking signal 10 time() : Current date and time: Tue Jun 7 11:10:00 2022 time(NULL) : Seconds since Epoch : 1654600200 ftime() : Current date and time: Tue Jun 7 11:10:00 2022 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Tue Jun 7 11:10:02 2022 Caught signal 10 clock_gettime(): Current date and time: Tue Jun 7 11:10:02 2022 stat(): mod. time of file './timetest': Tue Jun 7 11:09:56 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...) (If this test hangs for more than a few seconds, please report your glibc version and system details as FORCE_MONOTONIC_FIX issue at https://github.com/wolfcw/libfaketime) 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 Jan 1 10:00:05 2003 ============================================================================= 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...) (If this test hangs for more than a few seconds, please report your glibc version and system details as FORCE_MONOTONIC_FIX issue at https://github.com/wolfcw/libfaketime) 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': Tue Mar 29 14:14:03 2005 ============================================================================= 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...) (If this test hangs for more than a few seconds, please report your glibc version and system details as FORCE_MONOTONIC_FIX issue at https://github.com/wolfcw/libfaketime) Blocking signal 10 time() : Current date and time: Sat May 28 11:10:12 2022 time(NULL) : Seconds since Epoch : 1653736212 ftime() : Current date and time: Sat May 28 11:10:12 2022 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Sat May 28 11:10:14 2022 Caught signal 10 Caught signal 10 clock_gettime(): Current date and time: Sat May 28 11:10:14 2022 stat(): mod. time of file './timetest': Sat May 28 11:09:56 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...) (If this test hangs for more than a few seconds, please report your glibc version and system details as FORCE_MONOTONIC_FIX issue at https://github.com/wolfcw/libfaketime) Blocking signal 10 time() : Current date and time: Sat May 28 11:10:16 2022 time(NULL) : Seconds since Epoch : 1653736216 ftime() : Current date and time: Sat May 28 11:10:16 2022 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Sat May 28 11:10:18 2022 Caught signal 10 Caught signal 10 clock_gettime(): Current date and time: Sat May 28 11:10:18 2022 stat(): mod. time of file './timetest': Tue Jun 7 11:09:56 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...) (If this test hangs for more than a few seconds, please report your glibc version and system details as FORCE_MONOTONIC_FIX issue at https://github.com/wolfcw/libfaketime) Blocking signal 10 time() : Current date and time: Fri Jun 17 11:10:20 2022 time(NULL) : Seconds since Epoch : 1655464220 ftime() : Current date and time: Fri Jun 17 11:10:20 2022 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Fri Jun 17 11:10:22 2022 Caught signal 10 clock_gettime(): Current date and time: Fri Jun 17 11:10:22 2022 stat(): mod. time of file './timetest': Tue Jun 7 11:09:56 2022 ============================================================================= Running the 'date' command with 15 days negative offset specified $ LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="-15d" date Mon May 23 11:10:22 UTC 2022 ============================================================================= Running the test program with malloc interception $ LD_PRELOAD=./libmallocintercept.so:../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...) (If this test hangs for more than a few seconds, please report your glibc version and system details as FORCE_MONOTONIC_FIX issue at https://github.com/wolfcw/libfaketime) Blocking signal 10 time() : Current date and time: Tue Jun 7 11:10:24 2022 time(NULL) : Seconds since Epoch : 1654600224 ftime() : Current date and time: Tue Jun 7 11:10:24 2022 (Intentionally sleeping 2 seconds...) gettimeofday() : Current date and time: Tue Jun 7 11:10:26 2022 Caught signal 10 clock_gettime(): Current date and time: Tue Jun 7 11:10:26 2022 stat(): mod. time of file './timetest': Tue Jun 7 11:09:56 2022 ============================================================================= Running the test program with malloc interception and file faketimerc $ FAKETIME_NO_CACHE=1 FAKETIME_TIMESTAMP_FILE=.faketimerc-for-test LD_PRELOAD=./libmallocintercept.so:../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...) (If this test hangs for more than a few seconds, please report your glibc version and system details as FORCE_MONOTONIC_FIX issue at https://github.com/wolfcw/libfaketime) 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': Tue Mar 29 14:13:43 2005 ============================================================================= Testing finished. make: Leaving directory '/builddir/build/BUILD/libfaketime-0.9.10/test' + RPM_EC=0 ++ jobs -p + exit 0 Processing files: libfaketime-0.9.10-1.el9.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.AJcUh7 + umask 022 + cd /builddir/build/BUILD + cd libfaketime-0.9.10 + DOCDIR=/builddir/build/BUILDROOT/libfaketime-0.9.10-1.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.10-1.el9.x86_64/usr/share/doc/libfaketime + cp -pr README /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/share/doc/libfaketime + cp -pr NEWS /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/share/doc/libfaketime + cp -pr README.developers /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/share/doc/libfaketime + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.bo0f9G + umask 022 + cd /builddir/build/BUILD + cd libfaketime-0.9.10 + LICENSEDIR=/builddir/build/BUILDROOT/libfaketime-0.9.10-1.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.10-1.el9.x86_64/usr/share/licenses/libfaketime + cp -pr COPYING /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64/usr/share/licenses/libfaketime + RPM_EC=0 ++ jobs -p + exit 0 Provides: faketime libfaketime = 0.9.10-1.el9 libfaketime(x86-64) = 0.9.10-1.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.32)(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.10-1.el9.x86_64 Provides: libfaketime-debugsource = 0.9.10-1.el9 libfaketime-debugsource(x86-64) = 0.9.10-1.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.10-1.el9.x86_64 Provides: debuginfo(build-id) = b961401134b8d9bb9c60b9f848e23292266352f5 debuginfo(build-id) = c330348c4a5a4f5819aedce767d0168d56cce003 debuginfo(build-id) = d205e5f90e963bb873b284a14b0c5e291cc091ee libfaketime-debuginfo = 0.9.10-1.el9 libfaketime-debuginfo(x86-64) = 0.9.10-1.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.10-1.el9 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64 Wrote: /builddir/build/RPMS/libfaketime-0.9.10-1.el9.x86_64.rpm Wrote: /builddir/build/RPMS/libfaketime-debuginfo-0.9.10-1.el9.x86_64.rpm Wrote: /builddir/build/RPMS/libfaketime-debugsource-0.9.10-1.el9.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.lVhGgj + umask 022 + cd /builddir/build/BUILD + cd libfaketime-0.9.10 + /usr/bin/rm -rf /builddir/build/BUILDROOT/libfaketime-0.9.10-1.el9.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0