I pulled the code for 0.9.11, compiled it using make, and tested it using make test, but I got the following output.
$ make test
make -C src all
make[1]: 进入目录“/home/st/libfaketime/src”
make[1]: 对“all”无需做任何事。
make[1]: 离开目录“/home/st/libfaketime/src”
make -C test all
make[1]: 进入目录“/home/st/libfaketime/test”
gcc -c -std=gnu99 -Wall -DFAKE_STAT -Werror -Wextra -U_FILE_OFFSET_BITS -U_TIME_BITS timetest.c
gcc -o timetest timetest.o -lrt -lpthread
./testframe.sh functests
# Begin Test Suites in functests
# Begin functests/test_exclude_mono.sh
# PLATFORM=linuxlike
The testing process is stuck here. Following the instructions in the readme, I tried appending -DFORCE_PTHREAD_NONVER and FORCE_MONOTONIC_FIX to the CFLAGS variable in src/Makefile, but the problem persists.
The same thing happens when I try faketime '2008-12-24 08:15:42' /bin/date.
Furthermore, I tried https://github.com/batiati/dateoffset, but it doesn't work for jemalloc programs (it works for the date command, but not for my own commands). Do you know why? Perhaps jemalloc obtains the system time through other means?
After some experimentation, I found that 0.9.10 works in the tests, but my program uses jemalloc. It seems some features of 0.9.11 could help me resolve jemalloc compatibility issues, so I might need to find a way to make 0.9.11 work. Do you have any suggestions?
I pulled the code for
0.9.11, compiled it usingmake, and tested it usingmake test, but I got the following output.The testing process is stuck here. Following the instructions in the readme, I tried appending
-DFORCE_PTHREAD_NONVERandFORCE_MONOTONIC_FIXto theCFLAGSvariable insrc/Makefile, but the problem persists.The same thing happens when I try
faketime '2008-12-24 08:15:42' /bin/date.Furthermore, I tried https://github.com/batiati/dateoffset, but it doesn't work for jemalloc programs (it works for the
datecommand, but not for my own commands). Do you know why? Perhaps jemalloc obtains the system time through other means?After some experimentation, I found that
0.9.10works in the tests, but my program uses jemalloc. It seems some features of0.9.11could help me resolve jemalloc compatibility issues, so I might need to find a way to make0.9.11work. Do you have any suggestions?