Tests: Switch test apps to use usleep_safe()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 12 Nov 2015 21:43:12 +0000 (16:43 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 12 Nov 2015 22:16:07 +0000 (17:16 -0500)
commitae941114b338a4e6afb683345ee5f4fcc4296e01
tree7576f2a7744f95c073286d68b06b667f82a87aff
parent0458ed8c7f5c46e1fb56c8cb920ddbbc7adda8a8
Tests: Switch test apps to use usleep_safe()

usleep_safe() ensures that usleep honors its timing guarantees
(which it, according to the man pages, does not strictly enforce).

Some tests need to make ensure no events are emitted at the same
timestamp since Babeltrace does not define an ordering which can
be relied upon in such a case.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/testapp/gen-ust-events/Makefile.am
tests/utils/testapp/gen-ust-events/gen-ust-events.c
tests/utils/testapp/gen-ust-nevents/Makefile.am
tests/utils/testapp/gen-ust-nevents/gen-ust-nevents.c
This page took 0.03724 seconds and 5 git commands to generate.