From 8e875d3c380371cc7e3abe12f87f3493d634a87c Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 4 Aug 2014 12:46:00 +0200 Subject: [PATCH] Memory allocated on the stack is freed at the function exit, so reduce iteration count to avoid stack overflow (grafted from e51da9c3a8b448bc06110f1a7376211dcd32cc0e ) --- test/dynalloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/dynalloc.cpp b/test/dynalloc.cpp index 8bbda1c94..7e41bfa97 100644 --- a/test/dynalloc.cpp +++ b/test/dynalloc.cpp @@ -53,7 +53,7 @@ void check_aligned_new() void check_aligned_stack_alloc() { - for(int i = 1; i < 1000; i++) + for(int i = 1; i < 400; i++) { ei_declare_aligned_stack_constructed_variable(float,p,i,0); VERIFY(size_t(p)%ALIGNMENT==0);