summaryrefslogtreecommitdiff
path: root/test/timetest.c
Commit message (Collapse)AuthorAgeFilesLines
* encourage forced monotonic fix issue reports during test (addresses #366)Wolfgang Hommel2022-02-251-1/+2
|
* Unlock mutex before exiting in case of error (fixes #340)Wolfgang Hommel2021-07-171-0/+2
|
* Do not fail due to timer overrun counter mismatch on GNU/Hurd for now (#287)Wolfgang Hommel2021-02-121-0/+4
|
* Fix make test build failure on gcc 9.3Robin Linden2020-05-281-0/+3
| | | | | | | | On Ubuntu 20.04 using gcc 9.3, make test fails due to a deprecated function (ftime) warning in combination with -Werror in timetest.c. Since the warning is from a test testing that the deprecated function can be replaced using LD_PRELOAD, I think it's reasonable to just silence the warning in that case.
* Revert "Automake branch"revert-178-automake-branchWolfgang Hommel2019-11-301-2/+0
|
* Merged master in and cleaned up.Michael D. Stemle, Jr2019-11-271-1/+12
|\ | | | | We no longer need the OSX-specific test. Tests are passing, too.
| * Added FORCE_MONOTONIC_FIX CFLAG to avoid hangs on timedwait (#202 #142)Wolfgang Hommel2019-08-231-1/+1
| |
| * Adjusted tests on macOS based on compilation defaultsWolfgang Hommel2019-08-211-0/+11
| |
* | Fixed a _bunch_ of autotools bugs.Michael D. Stemle, Jr2018-10-071-0/+2
|/
* Implement a fix for pthread_cond_timedwait with faketimeMatthias Liertzer2018-01-021-0/+67
| | | | | | | | | | pthread_cond_timedwait takes an absolute time as an argument, which the function directly passes on to the kernel via the futex syscall. In an application this absolute time argument is calculated via the fake times provided by libfaketime. Since the kernel has no knowledge of the fake time, pthread_cond_timedwait must be redefined such that it converts the fake time back to real time before passing it on.
* Fix build failure on x32 (printf warnings).Adam Borowski2015-03-091-4/+4
| | | | | On x32, time_t is 64-bit to avoid Y2038 problems. This doesn't play well using printf("%ld"), and -Werror turns this into a build failure.
* Minor source code style fixesWolfgang Hommel2013-11-071-15/+41
|
* Use SIGUSR1 instead of SIGRTMIN in testsBalint Reczey2013-10-201-4/+6
| | | | This will probably fix compilation on Debian GNU/Hurd
* Fix tests on libc 2.17Balint Reczey2013-10-201-1/+0
|
* avoid unused variables warningsWolfgang Hommel2013-10-061-3/+9
|
* improved output readability for timer testsWolfgang Hommel2013-10-011-10/+23
|
* Provide timer related functions compatible with GLIBC 2.2 and >= 2.3.3 [pr32 ↵Balint Reczey2013-09-301-0/+99
| | | | @8615959]
* Use nanosleep() in faked sleep() and usleep() to avoid rounding issues ↵Wolfgang Hommel2013-09-041-1/+2
| | | | [rbalint/pr28]
* whitespace cleanupTomi Ollila2012-08-301-5/+5
| | | | | | | | | Used (emacs) M-x untabify for whole faketime.c as the prevailing style in that file used spaces for indentation. Used M-x delete-trailing-whitespace to all files that had either trailing whitespace or empty lines at the end of file to remove those.
* Minor adaptions for Mac OS XWolfgang Hommel2011-07-301-0/+4
|
* Cast time_t to unsigned integer when using printf().Lukas Fleischer2011-05-101-1/+1
| | | | | | Suppress compiler warnings when using "-Wformat". Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
* timetest.c: Add "sys/time.h" include (required for gettimeofday()).Lukas Fleischer2011-05-101-0/+1
| | | | Signed-off-by: Lukas Fleischer <info@cryptocrack.de>
* Move test suite to a separate subdirectory.Lukas Fleischer2011-04-271-0/+66
* Move test suite related stuff from "src/" to "test/". * Fix "test.sh" to search for libfaketime libraries in the right place. * Split up Makefile into two separate Makefiles (one for the main program and one for the test suite). Test cases should go in another directory for the sake of clean code separation. This will also facilitate the creation of proper Makefiles. Signed-off-by: Lukas Fleischer <info@cryptocrack.de>