Fix: track-untrack.c: regression of `--all --pid` option ordering
[lttng-tools.git] / tests / unit / test_utils_compat_poll.c
index 24a74d76f753018b6599161070b1c1d5725588e5..0cb692abccb5d0186115dcabd1a09d12accb4b43 100644 (file)
@@ -49,9 +49,9 @@ int lttng_opt_mi;
 #define MAGIC_VALUE ((char) 0x5A)
 
 #ifdef HAVE_EPOLL
-#define NUM_TESTS 46
+#define NUM_TESTS 47
 #else
-#define NUM_TESTS 45
+#define NUM_TESTS 46
 #endif
 
 #ifdef HAVE_EPOLL
@@ -71,7 +71,7 @@ void test_epoll_compat(void)
 }
 #endif
 
-void test_alloc(void)
+static void test_alloc(void)
 {
        struct lttng_poll_event poll_events;
 
@@ -92,7 +92,7 @@ void test_alloc(void)
 }
 
 /* Tests stuff related to what would be handled with epoll_ctl. */
-void test_add_del(void)
+static void test_add_del(void)
 {
        struct lttng_poll_event poll_events;
 
@@ -101,7 +101,7 @@ void test_add_del(void)
        ok(lttng_poll_add(&poll_events, 1, LPOLLIN) != 0, "Adding to uninitialized structure fails");
        ok(lttng_poll_add(&poll_events, -1, LPOLLIN) != 0, "Adding invalid FD fails");
 
-       lttng_poll_create(&poll_events, 1, 0);
+       ok(lttng_poll_create(&poll_events, 1, 0) == 0, "Create a poll set succeeds");
        ok(LTTNG_POLL_GETNB(&poll_events) == 0, "Set created empty");
 
        ok(lttng_poll_add(NULL, 1, LPOLLIN) != 0, "Adding to NULL set fails");
@@ -130,7 +130,7 @@ void test_add_del(void)
        lttng_poll_clean(&poll_events);
 }
 
-void test_mod_wait(void)
+static void test_mod_wait(void)
 {
        struct lttng_poll_event poll_events;
        struct lttng_poll_event cpoll_events;
@@ -186,7 +186,7 @@ void test_mod_wait(void)
        }
 }
 
-void test_func_def(void)
+static void test_func_def(void)
 {
 #ifdef LTTNG_POLL_GETFD
 #define PASS_GETFD 1
This page took 0.025873 seconds and 5 git commands to generate.