]> git.ipfire.org Git - thirdparty/kmod.git/blobdiff - testsuite/test-loaded.c
testsuite: fix test_array_sort pointers inderection
[thirdparty/kmod.git] / testsuite / test-loaded.c
index 7fcf7e111ca503606b56804b155099505668fcf3..9d5814f23ffc6cb8f379855233620c1275d60b88 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012  ProFUSION embedded systems
+ * Copyright (C) 2012-2013  ProFUSION embedded systems
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <stddef.h>
 #include <errno.h>
-#include <unistd.h>
 #include <inttypes.h>
+#include <stddef.h>
+#include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
-#include <libkmod.h>
+#include <unistd.h>
+
+#include <libkmod/libkmod.h>
 
 #include "testsuite.h"
 
@@ -78,19 +78,14 @@ static int loaded_1(const struct test *t)
 
        return EXIT_SUCCESS;
 }
-static DEFINE_TEST(loaded_1,
+DEFINE_TEST(loaded_1,
        .description = "check if list of module is created",
        .config = {
                [TC_ROOTFS] = TESTSUITE_ROOTFS "test-loaded/",
        },
        .need_spawn = true,
        .output = {
-               .stdout = TESTSUITE_ROOTFS "test-loaded/correct.txt",
+               .out = TESTSUITE_ROOTFS "test-loaded/correct.txt",
        });
 
-static const struct test *tests[] = {
-       &sloaded_1,
-       NULL,
-};
-
-TESTSUITE_MAIN(tests);
+TESTSUITE_MAIN();