Skip to content

Commit 68cc897

Browse files
committed
fix
1 parent d54bfd8 commit 68cc897

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/test_select.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ struct select_test
116116

117117
TEST_CASE_TEMPLATE("[select]", B, BATCH_TYPES)
118118
{
119-
select_test<B> Test;
120-
SUBCASE("select_dynamic") { Test.test_select_dynamic(); }
121-
SUBCASE("select_static") { Test.test_select_static(); }
119+
// Allocate on heap to avoid stack overflow from excessively large object.
120+
std::unique_ptr<select_test<B>> Test{new select_test<B>};
121+
SUBCASE("select_dynamic") { Test->test_select_dynamic(); }
122+
SUBCASE("select_static") { Test->test_select_static(); }
122123
}
123124
#endif

0 commit comments

Comments
 (0)