summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordmlunar <root@lunar.sh>2026-01-15 11:20:43 +0200
committerdmlunar <root@lunar.sh>2026-01-15 11:20:43 +0200
commit9c57d05e441e0e14d0a77219fb5836b93a74d6ac (patch)
treead46736cb81059c4c28347f5e89fc5fdf4007ff3
parent906be9cbe2dbc817946621428d78f5eaf64b3f62 (diff)
downloadcdl86-9c57d05e441e0e14d0a77219fb5836b93a74d6ac.tar.gz
cdl86-9c57d05e441e0e14d0a77219fb5836b93a74d6ac.zip
cdl86: update tests
Update tests to address compile issues.
-rw-r--r--.gitignore2
-rw-r--r--cdl.h1
-rw-r--r--tests/basic_jmp.c2
-rw-r--r--tests/basic_swbp.c4
4 files changed, 8 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..79b8925
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+basic_jmp
+basic_swbp
diff --git a/cdl.h b/cdl.h
index 5940918..30fbfb4 100644
--- a/cdl.h
+++ b/cdl.h
@@ -52,6 +52,7 @@
#ifndef CDL_H
#define CDL_H
+#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
diff --git a/tests/basic_jmp.c b/tests/basic_jmp.c
index e8aa85a..b7fe9fe 100644
--- a/tests/basic_jmp.c
+++ b/tests/basic_jmp.c
@@ -1,3 +1,5 @@
+#include <stdio.h>
+
#include "cdl.h"
typedef int add_t(
diff --git a/tests/basic_swbp.c b/tests/basic_swbp.c
index 684f71d..9c03e6a 100644
--- a/tests/basic_swbp.c
+++ b/tests/basic_swbp.c
@@ -1,3 +1,5 @@
+#include <stdio.h>
+
#include "cdl.h"
typedef int add_t(
@@ -49,4 +51,4 @@ int main(
printf("add(1,1) = %i\n\n", add(1,1));
return 0;
-} \ No newline at end of file
+}