]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
- fix issue with struct ml , not be initialized , test mod_get_addr_type failed 51/head
authorErwan MAS <erwan@mas.nom.fr>
Sun, 25 May 2025 03:57:00 +0000 (23:57 -0400)
committerErwan MAS <erwan@mas.nom.fr>
Sun, 25 May 2025 03:57:00 +0000 (23:57 -0400)
tests/mlmmj.c

index 7bc005275cf548a5b5fd5ecb6daf56c1ba8cf2c9..6c40cff858a4829e969b775b56f5c407eb09fa6c 100644 (file)
@@ -2703,6 +2703,8 @@ ATF_TC_BODY(mod_get_addr_type, tc)
        pid_t p = atf_utils_fork();
        if (p == 0) {
                struct ml ml;
+               ml_init(&ml);
+               ml.dir = "list";
                enum subtype subtype;
                char *addr;
                ml.fd = open(".", O_DIRECTORY);
@@ -2713,6 +2715,8 @@ ATF_TC_BODY(mod_get_addr_type, tc)
        p = atf_utils_fork();
        if (p == 0) {
                struct ml ml;
+               ml_init(&ml);
+               ml.dir = "list";
                enum subtype subtype;
                char *addr;
                ml.fd = open(".", O_DIRECTORY);
@@ -2723,6 +2727,8 @@ ATF_TC_BODY(mod_get_addr_type, tc)
        p = atf_utils_fork();
        if (p == 0) {
                struct ml ml;
+               ml_init(&ml);
+               ml.dir = "list";
                enum subtype subtype = 0;
                char *addr;
                ml.fd = open(".", O_DIRECTORY);
@@ -2736,6 +2742,8 @@ ATF_TC_BODY(mod_get_addr_type, tc)
        p = atf_utils_fork();
        if (p == 0) {
                struct ml ml;
+               ml_init(&ml);
+               ml.dir = "list";
                enum subtype subtype = 0;
                char *addr;
                ml.fd = open(".", O_DIRECTORY);
@@ -2747,6 +2755,8 @@ ATF_TC_BODY(mod_get_addr_type, tc)
        p = atf_utils_fork();
        if (p == 0) {
                struct ml ml;
+               ml_init(&ml);
+               ml.dir = "list";
                enum subtype subtype = 0;
                char *addr;
                ml.fd = open(".", O_DIRECTORY);
@@ -2761,6 +2771,8 @@ ATF_TC_BODY(mod_get_addr_type, tc)
        p = atf_utils_fork();
        if (p == 0) {
                struct ml ml;
+               ml_init(&ml);
+               ml.dir = "list";
                enum subtype subtype = 0;
                char *addr;
                ml.fd = open(".", O_DIRECTORY);
@@ -2775,6 +2787,8 @@ ATF_TC_BODY(mod_get_addr_type, tc)
        p = atf_utils_fork();
        if (p == 0) {
                struct ml ml;
+               ml_init(&ml);
+               ml.dir = "list";
                enum subtype subtype = 0;
                char *addr;
                ml.fd = open(".", O_DIRECTORY);
@@ -2788,6 +2802,8 @@ ATF_TC_BODY(mod_get_addr_type, tc)
        p = atf_utils_fork();
        if (p == 0) {
                struct ml ml;
+               ml_init(&ml);
+               ml.dir = "list";
                enum subtype subtype = 0;
                char *addr;
                ml.fd = open(".", O_DIRECTORY);
@@ -2800,6 +2816,8 @@ ATF_TC_BODY(mod_get_addr_type, tc)
        p = atf_utils_fork();
        if (p == 0) {
                struct ml ml;
+               ml_init(&ml);
+               ml.dir = "list";
                enum subtype subtype = 0;
                char *addr;
                ml.fd = open(".", O_DIRECTORY);