Skip to content
Snippets Groups Projects

Move alloc tests to expected-output tests

Merged Peter Limkilde Svendsen requested to merge plimkilde/relibc:expected_alloc_test into master
+ 1
1
@@ -58,7 +58,7 @@ void test_size_zero(void *ptr, size_t alignment, int error_val) {
/* For allocation functions, POSIX permits returning either a NULL
* pointer and optionally an implementation-defined error value, or
* succeeding with a non-NULL pointer. */
if (ptr == NULL || (ptr != NULL && ptr_alignment_rem == 0 && error_val == 0)) {
if (ptr == NULL || (ptr_alignment_rem == 0 && error_val == 0)) {
// Constant output for successful case
printf("(OK)\n");
}
Loading