aboutsummaryrefslogtreecommitdiff
path: root/tests/mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mem.c')
-rw-r--r--tests/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mem.c b/tests/mem.c
index 36ad3a9..c144bfc 100644
--- a/tests/mem.c
+++ b/tests/mem.c
@@ -5,8 +5,8 @@
/* mem.c -- Exhaust your memory */
int main(void){
void *ptr = NULL;
- unsigned long mb = 1;
- for (;;mb++) {
+ unsigned long mb = 5;
+ for (;;mb += 5) {
fprintf(stderr, "%lu MB\n", mb);
if ((ptr = realloc(ptr, mb * 1000000)) == NULL) {
raise(SIGABRT);