NetworkManager/src/platform/tests
Thomas Haller 86e4975c60 platform/tests: improve nmtstp_wait_for_signal() to return number of signals
Instead of returning only TRUE/FALSE, return the number of signals
that were received while waiting. This make the API cleared, because
previously I always had to check anew whether wait-for-signal returns
TRUE or FALSE on timeout.

Also, add nmtstp_assert_wait_for_signal() and nmtstp_assert_wait_for_signal_until()
macros.

(cherry picked from commit af55476bf1)
2016-04-12 11:14:01 +02:00
..
.gitignore platform: add nmp-object.h file 2015-06-17 11:23:51 +02:00
Makefile.am platform/tests: change build order to first build test-common.c and platform core 2016-04-12 11:14:01 +02:00
monitor.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
test-address.c platform/tests: add @platform argument to nmtstp functions 2016-04-12 11:14:01 +02:00
test-cleanup.c platform/tests/trivial: rename init_tests() and setup_tests() function 2016-04-12 11:14:01 +02:00
test-common.c platform/tests: improve nmtstp_wait_for_signal() to return number of signals 2016-04-12 11:14:01 +02:00
test-common.h platform/tests: improve nmtstp_wait_for_signal() to return number of signals 2016-04-12 11:14:01 +02:00
test-general.c platform/tests: use nm_linux_platform_new() 2016-04-12 11:14:01 +02:00
test-link.c platform/tests: add @platform argument to nmtstp functions 2016-04-12 11:14:01 +02:00
test-nmp-object.c platform: don't create udev client if udev isn't used 2016-03-07 11:58:01 +01:00
test-route.c platform/tests: add @platform argument to nmtstp functions 2016-04-12 11:14:01 +02:00