diff options
author | dzwdz | 2023-08-14 18:51:07 +0200 |
---|---|---|
committer | dzwdz | 2023-08-14 18:51:07 +0200 |
commit | 642b5fb0007b64c77d186fcb018d571152ee1d47 (patch) | |
tree | 1c466461f3602d306be309a053edae558ef2568e /src/user/app/tests/libc/setjmp.c | |
parent | 8050069c57b729c18c19b1a03ab6e4bf63b4735e (diff) |
reorganization: first steps
Diffstat (limited to 'src/user/app/tests/libc/setjmp.c')
-rw-r--r-- | src/user/app/tests/libc/setjmp.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/user/app/tests/libc/setjmp.c b/src/user/app/tests/libc/setjmp.c deleted file mode 100644 index 0dded9d..0000000 --- a/src/user/app/tests/libc/setjmp.c +++ /dev/null @@ -1,31 +0,0 @@ -#include "../tests.h" -#include <stdbool.h> -#include <setjmp.h> - -static void test_setjmp(void) { - jmp_buf env; - volatile bool inner; - int val; - inner = false; - if (!(val = setjmp(env))) { - inner = true; - longjmp(env, 1234); - test(0); - } else { - test(val == 1234); - test(inner); - } - inner = false; - if (!(val = setjmp(env))) { - inner = true; - longjmp(env, 0); - test(0); - } else { - test(val == 1); - test(inner); - } -} - -void r_libc_setjmp(void) { - run_test(test_setjmp); -} |