X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=testsuite%2Ftest-dependencies.c;h=bed6ad4f3b9f46aa0ae7c5b5046f1b5ec9179ee8;hb=9c6084d90ca8f8007d60e94cc8aea490e762723e;hp=cdd80662c8861eb909567697224e93666dd88542;hpb=e6b0e49b4ea7937a98b16f23d621244ee1a3e588;p=thirdparty%2Fkmod.git
diff --git a/testsuite/test-dependencies.c b/testsuite/test-dependencies.c
index cdd8066..bed6ad4 100644
--- a/testsuite/test-dependencies.c
+++ b/testsuite/test-dependencies.c
@@ -12,20 +12,23 @@
* 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 .
*/
-#include
-#include
-#include
#include
-#include
#include
+#include
+#include
+#include
#include
-#include
+#include
+
+#include
+
+#include
#include "testsuite.h"
+
#define TEST_UNAME "4.0.20-kmod"
static int test_dependencies(const struct test *t)
@@ -53,11 +56,11 @@ static int test_dependencies(const struct test *t)
struct kmod_module *m = kmod_module_get_module(l);
const char *name = kmod_module_get_name(m);
- if (strcmp(name, "crc16") == 0)
+ if (streq(name, "crc16"))
crc16 = 1;
- if (strcmp(name, "mbcache") == 0)
+ if (streq(name, "mbcache"))
mbcache = 1;
- else if (strcmp(name, "jbd2") == 0)
+ else if (streq(name, "jbd2"))
jbd2 = 1;
kmod_module_unref(m);
@@ -85,9 +88,4 @@ static const struct test stest_dependencies = {
.need_spawn = true,
};
-static const struct test *tests[] = {
- &stest_dependencies,
- NULL,
-};
-
-TESTSUITE_MAIN(tests);
+TESTSUITE_MAIN();