summaryrefslogtreecommitdiff
path: root/src/user/app/tests
diff options
context:
space:
mode:
authordzwdz2023-02-23 18:36:11 +0100
committerdzwdz2023-02-23 18:36:11 +0100
commit7f4cdc65a390c5bacab00cc38100d66637394476 (patch)
tree3d280dbd1cf67a0f7a3c73e319d7ba4d20f4b198 /src/user/app/tests
parent55224307bf9b3e4231daca9ad4c4e3b6d734869b (diff)
fix: misc warnings
Diffstat (limited to 'src/user/app/tests')
-rw-r--r--src/user/app/tests/kernel/misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/user/app/tests/kernel/misc.c b/src/user/app/tests/kernel/misc.c
index b60ebc0..5d6b531 100644
--- a/src/user/app/tests/kernel/misc.c
+++ b/src/user/app/tests/kernel/misc.c
@@ -21,6 +21,7 @@ static void test_fault_kill(void) {
}
static void test_efault(void) {
+#if 0
const char *str = "o, 16 characters";
char str2[16];
char *invalid = (void*)0x1000;
@@ -51,6 +52,7 @@ static void test_efault(void) {
test(_sys_write(h, str, 16, 0, 0) == 16);
close(h);
+#endif
}
static void test_invalid_syscall(void) {
@@ -59,6 +61,6 @@ static void test_invalid_syscall(void) {
void r_k_misc(void) {
run_test(test_fault_kill);
- // run_test(test_efault);
+ run_test(test_efault);
run_test(test_invalid_syscall);
}