Skip to content
Snippets Groups Projects
Commit 26a3edbe authored by Patrick Palka's avatar Patrick Palka
Browse files

c++/modules testsuite: restrict expensive pr99023 test


The pr99023 testcase uses --param=ggc-min-expand=0 which forces a GC
during every collection point and consequently is very slow to run,
and ends up being the main bottleneck of the modules.exp testsuite.

So this patch restricts this test to run once, in C++20 mode, instead of
multiple times (C++17, C++20 and C++23 mode by default).  After this
patch the modules.exp testsuite finishes in 3m instead of 3m40s with -j8
on my machine.

gcc/testsuite/ChangeLog:

	* g++.dg/modules/pr99023_a.X: Run only in C++20 mode.
	* g++.dg/modules/pr99023_b.X: Likewise.

Reviewed-by: default avatarJason Merrill <jason@redhat.com>
parent 0844170e
No related branches found
No related tags found
No related merge requests found
// PR c++/99023, ICE // PR c++/99023, ICE
// { dg-require-effective-target c++20_only }
// { dg-additional-options {-x c++-system-header initializer_list -fmodules-ts --param ggc-min-expand=0} } // { dg-additional-options {-x c++-system-header initializer_list -fmodules-ts --param ggc-min-expand=0} }
// { dg-prune-output {linker input file unused} } // { dg-prune-output {linker input file unused} }
......
// PR c++/99023, ICE // PR c++/99023, ICE
// { dg-require-effective-target c++20_only }
// { dg-additional-options {-x c++-system-header iostream -fmodules-ts -flang-info-include-translate=<initializer_list> --param ggc-min-expand=0} } // { dg-additional-options {-x c++-system-header iostream -fmodules-ts -flang-info-include-translate=<initializer_list> --param ggc-min-expand=0} }
// { dg-prune-output {linker input file unused} } // { dg-prune-output {linker input file unused} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment