summaryrefslogtreecommitdiffstats
path: root/src/tests/umalloc_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/umalloc_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/umalloc_test.c')
-rw-r--r--src/tests/umalloc_test.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/tests/umalloc_test.c b/src/tests/umalloc_test.c
deleted file mode 100644
index 53810833c..000000000
--- a/src/tests/umalloc_test.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <stdio.h>
-#include <ipxe/uaccess.h>
-#include <ipxe/umalloc.h>
-#include <ipxe/io.h>
-
-void umalloc_test ( void ) {
- struct memory_map memmap;
- userptr_t bob;
- userptr_t fred;
-
- printf ( "Before allocation:\n" );
- get_memmap ( &memmap );
-
- bob = umalloc ( 1234 );
- bob = urealloc ( bob, 12345 );
- fred = umalloc ( 999 );
-
- printf ( "After allocation:\n" );
- get_memmap ( &memmap );
-
- ufree ( bob );
- ufree ( fred );
-
- printf ( "After freeing:\n" );
- get_memmap ( &memmap );
-}