From a204aa8c48c7893a515736e94c213a48e21e62ef Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 20 Jun 2019 21:41:32 -0500 Subject: [PATCH] [ox/fs] Move large test allocations to heap --- deps/ox/src/ox/fs/test/tests.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deps/ox/src/ox/fs/test/tests.cpp b/deps/ox/src/ox/fs/test/tests.cpp index 202f1c7e..cb46d4d9 100644 --- a/deps/ox/src/ox/fs/test/tests.cpp +++ b/deps/ox/src/ox/fs/test/tests.cpp @@ -11,7 +11,6 @@ #include #include -#include #include #include #include @@ -170,7 +169,7 @@ map tests = { { "Directory", [](string) { - std::array fsBuff; + std::vector fsBuff(5000); ox::FileStore32::format(fsBuff.data(), fsBuff.size()); ox::FileStore32 fileStore(fsBuff.data(), fsBuff.size()); auto dir = ox_malloca(1000, ox::Directory32, fileStore, 100); @@ -197,7 +196,7 @@ map tests = { { "FileSystem", [](string) { - std::array fsBuff; + std::vector fsBuff(5000); oxTrace("ox::fs::test::FileSystem") << "format"; oxAssert(ox::FileSystem32::format(fsBuff.data(), fsBuff.size()), "FileSystem format failed"); ox::FileSystem32 fs(ox::FileStore32(fsBuff.data(), fsBuff.size()));