summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-12-14 11:40:13 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2023-12-14 23:08:44 +0100
commitc15e51bde23e54895cb4f3aa00399fa5e7bef0e8 (patch)
tree9f3b6a132c030f1f7b6e8451d280abe085c06c5b
parenttest: forward journal messages to console during sd-bsod tests (diff)
downloadsystemd-c15e51bde23e54895cb4f3aa00399fa5e7bef0e8.tar.xz
systemd-c15e51bde23e54895cb4f3aa00399fa5e7bef0e8.zip
test: update comment style & drop one extraneous newline
Follow-up to 9fb2a61830.
-rw-r--r--src/test/test-bootspec.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/test/test-bootspec.c b/src/test/test-bootspec.c
index 18611fc051..86d7702bf8 100644
--- a/src/test/test-bootspec.c
+++ b/src/test/test-bootspec.c
@@ -188,23 +188,22 @@ TEST_RET(bootspec_boot_config_find_entry) {
assert_se(boot_config_load(&config, d, NULL) >= 0);
assert_se(config.n_entries == 2);
- // Test finding the first entry
+ /* Test finding the first entry */
BootEntry *entry = boot_config_find_entry(&config, "a-10.conf");
assert_se(entry && streq(entry->id, "a-10.conf"));
- // Test finding the second entry
+ /* Test finding the second entry */
entry = boot_config_find_entry(&config, "a-05.conf");
assert_se(entry && streq(entry->id, "a-05.conf"));
- // Test finding a non-existent entry
+ /* Test finding a non-existent entry */
entry = boot_config_find_entry(&config, "nonexistent.conf");
assert_se(entry == NULL);
- // Test case-insensitivity
+ /* Test case-insensitivity */
entry = boot_config_find_entry(&config, "A-10.CONF");
assert_se(entry && streq(entry->id, "a-10.conf"));
-
return 0;
}