Skip to content
Snippets Groups Projects
Verified Commit 634b2ed8 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Use actual break in unistd/brk

parent e27b22f6
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,10 @@
#include "test_helpers.h"
int main(void) {
int status = brk((void*)100);
void * current = sbrk(0);
ERROR_IF(sbrk, current, == (void *)-1);
int status = brk(current + 4096);
ERROR_IF(brk, status, == -1);
UNEXP_IF(brk, status, != 0);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment