summaryrefslogtreecommitdiff
path: root/tests/libc/test_malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libc/test_malloc.c')
-rw-r--r--tests/libc/test_malloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/libc/test_malloc.c b/tests/libc/test_malloc.c
index 0f74fad..aaff2da 100644
--- a/tests/libc/test_malloc.c
+++ b/tests/libc/test_malloc.c
@@ -17,8 +17,8 @@ int main( void )
s = (char *)malloc( strlen( s1 ) + 1 );
size_t n = strlcpy( s, s1, strlen( s1 ) + 1 );
- if( n != 11 ) return 1;
- if( strcmp( s, s1 ) != 0 ) return 1;
+ if( n != 11 ) exit( 1 );
+ if( strcmp( s, s1 ) != 0 ) exit( 1 );
- return 0;
+ exit( 0 );
}