Commit 610384258ccdd904d7397cf6755d4be4df47dcbe

Edward Thomson 2019-11-29T09:13:33

Merge pull request #5313 from pks-t/pks/config-invasive tests: config: only test parsing huge file with GITTEST_INVASIVE_SPEED

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