summaryrefslogtreecommitdiffstats
path: root/src/tests/test.c
diff options
context:
space:
mode:
authorSimon Rettberg2026-01-28 12:53:53 +0100
committerSimon Rettberg2026-01-28 12:53:53 +0100
commit8e82785c584dc13e20f9229decb95bd17bbe9cd1 (patch)
treea8b359e59196be5b2e3862bed189107f4bc9975f /src/tests/test.c
parentMerge branch 'master' into openslx (diff)
parent[prefix] Make unlzma.S compatible with 386 class CPUs (diff)
downloadipxe-openslx.tar.gz
ipxe-openslx.tar.xz
ipxe-openslx.zip
Merge branch 'master' into openslxopenslx
Diffstat (limited to 'src/tests/test.c')
-rw-r--r--src/tests/test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/test.c b/src/tests/test.c
index 4c49d4c16..e4f5eb838 100644
--- a/src/tests/test.c
+++ b/src/tests/test.c
@@ -34,6 +34,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stddef.h>
#include <stdio.h>
+#include <string.h>
#include <errno.h>
#include <assert.h>
#include <ipxe/test.h>
@@ -161,6 +162,7 @@ static struct image_type test_image_type = {
static struct image test_image = {
.refcnt = REF_INIT ( ref_no_free ),
.name = "<TESTS>",
+ .flags = ( IMAGE_STATIC | IMAGE_STATIC_NAME ),
.type = &test_image_type,
};
@@ -178,5 +180,6 @@ static void test_init ( void ) {
/** Self-test initialisation function */
struct init_fn test_init_fn __init_fn ( INIT_EARLY ) = {
+ .name = "test",
.initialise = test_init,
};