Commit 361ebbcbbc939b73e40f09f1d71972e91414e323

Patrick Steinhardt 2019-11-28T15:36:40

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
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/tests/config/stress.c b/tests/config/stress.c
index ea54c7a..28c3c4a 100644
--- a/tests/config/stress.c
+++ b/tests/config/stress.c
@@ -181,6 +181,9 @@ void test_config_stress__huge_section_with_many_values(void)
 {
 	git_config *config;
 
+	if (!cl_is_env_set("GITTEST_INVASIVE_SPEED"))
+		cl_skip();
+
 	/*
 	 * The config file is structured in such a way that is
 	 * has a section header that is approximately 500kb of