]> granicus.if.org Git - check/commit
Allow unit test timeouts to be specified using nanosecond precision
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 21 Nov 2012 04:01:43 +0000 (04:01 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 21 Nov 2012 04:01:43 +0000 (04:01 +0000)
commit24db475c0387650461739a1547f50d087b1fdf22
tree22c60f58839d2965c3e0b12d00a3e8563616759e
parent9da7c96992525f531a5a012248da7156a6c6c546
Allow unit test timeouts to be specified using nanosecond precision

Previously, test timeouts were limited to second precision. The reason
was the call used to determine test timeouts, alarm, only supported
second precision. With this change, three more functions from librt
are used set a timer to fire with nanosecond precision. For systems
without librt, an implementation of these functions is in libcompat
which fall back on using alarm.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@679 64e312b2-a51f-0410-8e61-82d0ca0eb02a
NEWS
configure.ac
doc/check.texi
lib/libcompat.h
src/check.c
src/check.h.in
src/check_impl.h
src/check_run.c
tests/check_check_master.c
tests/check_check_sub.c