diff --git a/tests/hello.c b/tests/hello.c index f4ff331fc4..1273dfffa2 100644 --- a/tests/hello.c +++ b/tests/hello.c @@ -1,10 +1,8 @@ #include -#include int main () { - errno = ENOSYS; puts ("I: Hello KolibriOS from GCC!"); return 0; } diff --git a/tests/malloc.c b/tests/malloc.c index 689a9438d8..2b07d7bcc3 100644 --- a/tests/malloc.c +++ b/tests/malloc.c @@ -21,8 +21,8 @@ main () for (size_t i = 0; i < 1000; i++) { void *ptr = malloc (9999); - memset (ptr, 0xFF, 9999); assert (ptr != NULL); + memset (ptr, 0xFF, 9999); free (ptr); } @@ -37,9 +37,9 @@ main () // free() for (size_t i = 0; i < MAX_ALLOCS; i++) { - free(allocs[i]); + free (allocs[i]); } - _ksys_dbg_print("I: Malloc test: OK"); + _ksys_dbg_print ("I: Malloc test: OK"); return 0; }