Skip to content

Commit 361ebbc

Browse files
committed
tests: config: only test parsing huge file with GITTEST_INVASIVE_SPEED
The test in config::stress::huge_section_with_many_values takes quite a long time to execute. Hide it behind the GITTEST_INVASIVE_SPEED environment varibale to not needlessly blow up execution time of tests. As this environment variable is being set by the continuous integration, we will execute it regularly anyway.
1 parent fb439c9 commit 361ebbc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/config/stress.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ void test_config_stress__huge_section_with_many_values(void)
181181
{
182182
git_config *config;
183183

184+
if (!cl_is_env_set("GITTEST_INVASIVE_SPEED"))
185+
cl_skip();
186+
184187
/*
185188
* The config file is structured in such a way that is
186189
* has a section header that is approximately 500kb of

0 commit comments

Comments
 (0)