summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-10-31 21:48:18 +0100
committerGitHub <noreply@github.com>2024-10-31 21:48:18 +0100
commitc8c13fdf51c91bc5346ea9e9ba618f82ae5fdd82 (patch)
tree92553e758b726e793911522b738ad9f4f5510a7c /src/test
parentlogind/systemctl: one follow-up for DesignatedMaintenanceWindow (#34966) (diff)
parentboot: stop appending NUL to .sdmagic and .sbat sections (diff)
downloadsystemd-c8c13fdf51c91bc5346ea9e9ba618f82ae5fdd82.tar.xz
systemd-c8c13fdf51c91bc5346ea9e9ba618f82ae5fdd82.zip
Drop trailing NUL in .sbat/.sdmagic sections (#34950)
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-sbat.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/test/test-sbat.c b/src/test/test-sbat.c
index d8546b1ad9..cf9c155c9d 100644
--- a/src/test/test-sbat.c
+++ b/src/test/test-sbat.c
@@ -8,17 +8,26 @@
#include "sbat.h"
#include "tests.h"
-TEST(sbat_section_text) {
- log_info("---SBAT-----------&<----------------------------------------\n"
+TEST(BOOT_SBAT) {
+ log_info("---SBAT-----------&<-----------------------------------------\n"
"%s"
+ "------------------>&-----------------------------------------",
+#ifdef SBAT_DISTRO
+ SBAT_BOOT_SECTION_TEXT
+#else
+ "(not defined)"
+#endif
+ );
+}
+
+TEST(STUB_SBAT) {
+ log_info("---SBAT-----------&<-----------------------------------------\n"
"%s"
"------------------>&-----------------------------------------",
#ifdef SBAT_DISTRO
- SBAT_BOOT_SECTION_TEXT,
SBAT_STUB_SECTION_TEXT
#else
- "(not defined)",
- ""
+ "(not defined)"
#endif
);
}