[libcxx] [test] Add a test parameter for disabling memory intensive tests (#68214)
authorMartin Storsjö <martin@martin.st>
Tue, 17 Oct 2023 19:49:52 +0000 (22:49 +0300)
committerTobias Hieta <tobias@hieta.se>
Tue, 24 Oct 2023 06:24:01 +0000 (08:24 +0200)
commitaa03fba83b17bbfcd9ed869efed2818b503875d6
tree122ce1109e6c572d7cfa70e04aacb16e03d32ea1
parent71f408bc3623e06f1dada3667f225c64c11fbb4d
[libcxx] [test] Add a test parameter for disabling memory intensive tests (#68214)

Specifically, the test std/input.output/string.streams/stringstream/stringstream.members/gcount.pass.cpp
allocates a std::string with INT_MAX-1 elements, and then writes this to
a std::stringstream. On Linux, running this test consumes around 5.0 GB
of memory; on Windows, it ends up using up to 6.8 GB of memory.

This limits whether such tests can run on e.g. GitHub Actions runners,
where the free runners are limited to 8 GB of memory.

This is somewhat similar to, but still notably different, from the
existing test parameter long_tests.

(cherry picked from commit 122064a6303eb9c06e0af231f5a4ce145d9a2e67)
libcxx/test/std/input.output/string.streams/stringstream/stringstream.members/gcount.pass.cpp
libcxx/utils/libcxx/test/params.py