projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix lrand48-signextend and regex-negated-range regression tests
[libc-test]
/
src
/
regression
/
malloc-brk-fail.c
diff --git
a/src/regression/malloc-brk-fail.c
b/src/regression/malloc-brk-fail.c
index
c89cee0
..
d0ccd35
100644
(file)
--- a/
src/regression/malloc-brk-fail.c
+++ b/
src/regression/malloc-brk-fail.c
@@
-1,3
+1,4
@@
+// commit 5446303328adf4b4e36d9fba21848e6feb55fab4 2014-04-02
// malloc should not fail if brk fails but mmap can still allocate
#include <stdlib.h>
#include <errno.h>
// malloc should not fail if brk fails but mmap can still allocate
#include <stdlib.h>
#include <errno.h>
@@
-32,7
+33,7
@@
int main(void)
t_error("malloc did not fail with ENOMEM, got %s\n", strerror(errno));
// make some space available for mmap
t_error("malloc did not fail with ENOMEM, got %s\n", strerror(errno));
// make some space available for mmap
- T(munmap(p+65536, 65536));
+ T(munmap(
(char*)
p+65536, 65536));
// malloc should succeed now
q = malloc(10000);
// malloc should succeed now
q = malloc(10000);