summaryrefslogtreecommitdiff
path: root/test_timespec.c
Commit message (Collapse)AuthorAgeFilesLines
* test_timespec.c: ex_subtract_float() never returned failure.Gary E. Miller2018-09-251-2/+8
| | | | Found by cppcheck.
* Initial creation of os_compat.h.Fred Wright2017-01-221-1/+0
| | | | | | | | | | | | | | | | | This creates a header for os_compat.c, and moves the related prototypes into it from gpsd_config.h (as created by SConstruct), after adding references to it to gpsd.h (via gpsd.h-tail) and a few other sources that need it but don't include gpsd.h. It also removes includes of <time.h> in the places where they were only needed for the code now removed from gpsd_config.h. TESTED: Ran "scons build-all check" on OSX 10.9 (with strlcat/strlcpy but no clock_gettime), OSX 10.12 (with strlcat/strlcpy and clock_gettime), and Ubuntu 14 (with clock_gettime but no strlcat/strlcpy). Also verified that fallback versions were not being included where unnecessary.
* Address bug #46813: test_timespec.c gets a missing include warning.Fred Wright2016-01-041-0/+1
|
* Add examples of bad 32 bit longs, floats and doubles.Gary E. Miller2015-06-051-0/+38
|
* Annotate failures in subtraction examples.Gary E. Miller2015-06-051-7/+56
|
* Annotate failures in precision conversion examples.Gary E. Miller2015-06-051-11/+62
|
* Remove a duplicate array of tests.Gary E. Miller2015-06-051-23/+15
|
* Fix some nits.Gary E. Miller2015-06-051-2/+2
|
* Better formatting of examples.Gary E. Miller2015-06-041-12/+32
|
* Add tests for time_diff_ns().Gary E. Miller2015-06-041-8/+67
| | | | | Heopfully thhe next time someone breaks timespec_to_ns() the test will catch it quickly.
* Fix test_timespec for 32 bit compilers.Gary E. Miller2015-06-041-4/+4
|
* Add 32bit long to precision conversion examples.Gary E. Miller2015-04-301-2/+4
|
* Simulate 32 bit longs in examples.Gary E. Miller2015-04-301-8/+16
| | | | This nicely shows how 32 bit longs can blow up.
* Add long to comparison example.Gary E. Miller2015-04-301-31/+20
|
* Add some better examples, and timespec/float/double example.Gary E. Miller2015-04-301-4/+72
|
* Trailing whitespace fixup.Gary E. Miller2015-04-301-2/+2
|
* Expand examples.Gary E. Miller2015-04-301-11/+19
|
* Add example to show why timespec_diff_ns() must die.Gary E. Miller2015-04-281-1/+20
|
* Add more tests, and some precision loss examples.Gary E. Miller2015-04-281-3/+53
| | | | Try: test_timespec -v
* More tests, verbose option, better looking output.Gary E. Miller2015-04-281-43/+81
|
* Fix trailing whitespace.Gary E. Miller2015-04-281-3/+3
|
* Add timespec subtract tests.Gary E. Miller2015-04-281-0/+157