Merge "lpc10: Avoid compiler warning when DONT_OPTIMIZE/COMPILE_DOUBLE."
[asterisk/asterisk.git] / tests / test_poll.c
index 7fbf8cc..a142ffc 100644 (file)
@@ -28,6 +28,7 @@
 
 /*** MODULEINFO
        <depend>TEST_FRAMEWORK</depend>
+       <support_level>core</support_level>
  ***/
 
 #include "asterisk.h"
 #include <errno.h>
 #include <unistd.h>
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-
 #include "asterisk/utils.h"
 #include "asterisk/module.h"
 #include "asterisk/test.h"
 #include "asterisk/poll-compat.h"
 
-#ifndef HAVE_SBIN_LAUNCHD
 static void *failsafe_cancel(void *vparent)
 {
        pthread_t parent = (pthread_t) (long) vparent;
@@ -85,10 +83,10 @@ AST_TEST_DEFINE(poll_test)
        switch (cmd) {
        case TEST_INIT:
                info->name = "poll_test";
-               info->category = "main/poll/";
+               info->category = "/main/poll/";
                info->summary = "unit test for the ast_poll() API";
                info->description =
-                       "Verifies behavior for the ast_poll() API call\n";
+                       "Verifies behavior for the ast_poll() API call";
                return AST_TEST_NOT_RUN;
        case TEST_EXECUTE:
                break;
@@ -232,21 +230,16 @@ AST_TEST_DEFINE(poll_test)
 #endif
        return res;
 }
-#endif
 
 static int unload_module(void)
 {
-#ifndef HAVE_SBIN_LAUNCHD
        AST_TEST_UNREGISTER(poll_test);
-#endif
        return 0;
 }
 
 static int load_module(void)
 {
-#ifndef HAVE_SBIN_LAUNCHD
        AST_TEST_REGISTER(poll_test);
-#endif
        return AST_MODULE_LOAD_SUCCESS;
 }