]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: rename file with stub functions 32818/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 14 May 2024 15:59:09 +0000 (17:59 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 14 May 2024 16:56:41 +0000 (18:56 +0200)
icmp6-util-linux.c sounds like a specialized implementation of the functions in
icmp6-util.c. But it's just a set of stub versions used in tests. Rename the
file to make this more obvious.

src/libsystemd-network/fuzz-ndisc-rs.c
src/libsystemd-network/icmp6-test-util.c [moved from src/libsystemd-network/icmp6-util-unix.c with 97% similarity]
src/libsystemd-network/icmp6-test-util.h [moved from src/libsystemd-network/icmp6-util-unix.h with 100% similarity]
src/libsystemd-network/meson.build
src/libsystemd-network/test-ndisc-ra.c
src/libsystemd-network/test-ndisc-rs.c

index 780a5d7f5a92e291408a92f58f0874f62b69cb5a..e6ee76895f87fe1e321afe74ac9138dbc4df4ffe 100644 (file)
@@ -11,7 +11,7 @@
 #include "fd-util.h"
 #include "fuzz.h"
 #include "icmp6-packet.h"
-#include "icmp6-util-unix.h"
+#include "icmp6-test-util.h"
 #include "ndisc-internal.h"
 #include "ndisc-option.h"
 #include "socket-util.h"
similarity index 97%
rename from src/libsystemd-network/icmp6-util-unix.c
rename to src/libsystemd-network/icmp6-test-util.c
index d6d505717d8ecb366b0b9e8466b4df46995c2e04..3c781095bc90e7bda41b5b9ba3532b308c62b797 100644 (file)
@@ -5,7 +5,7 @@
 #include <unistd.h>
 
 #include "fd-util.h"
-#include "icmp6-util-unix.h"
+#include "icmp6-test-util.h"
 
 int test_fd[2] = EBADF_PAIR;
 
index fdd8806a2324bcffdba9c7c56ee7e2a1ec3a12b8..718495cd8eb5558a7d263e34844aad1c532ccab3 100644 (file)
@@ -91,13 +91,13 @@ executables += [
         network_test_template + {
                 'sources' : files(
                         'test-ndisc-ra.c',
-                        'icmp6-util-unix.c',
+                        'icmp6-test-util.c',
                 ),
         },
         network_test_template + {
                 'sources' : files(
                         'test-ndisc-rs.c',
-                        'icmp6-util-unix.c',
+                        'icmp6-test-util.c',
                 ),
         },
         network_test_template + {
@@ -125,7 +125,7 @@ executables += [
         network_fuzz_template + {
                 'sources' : files(
                         'fuzz-ndisc-rs.c',
-                        'icmp6-util-unix.c',
+                        'icmp6-test-util.c',
                 ),
         },
 ]
index 8be7351a0987c432812a99f58afa204f5f283c64..14c9164585454a4589ef64d835f8594a4ece59b6 100644 (file)
@@ -11,7 +11,7 @@
 
 #include "alloc-util.h"
 #include "hexdecoct.h"
-#include "icmp6-util-unix.h"
+#include "icmp6-test-util.h"
 #include "socket-util.h"
 #include "strv.h"
 #include "tests.h"
index 5ad2c92b49c1dd6281e326f133fa343157e98d4a..66aad2600a379837e7e0ec10aed8a4d75f5dd19e 100644 (file)
@@ -13,7 +13,7 @@
 #include "fd-util.h"
 #include "hexdecoct.h"
 #include "icmp6-packet.h"
-#include "icmp6-util-unix.h"
+#include "icmp6-test-util.h"
 #include "socket-util.h"
 #include "strv.h"
 #include "ndisc-internal.h"