diff options
| author | Patrick Steinhardt <ps@pks.im> | 2019-11-28 15:36:40 +0100 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2019-11-28 15:39:13 +0100 |
| commit | 361ebbcbbc939b73e40f09f1d71972e91414e323 (patch) | |
| tree | 6820dfe409aabad436c5bb90de42d11f0c607bb1 /tests/config | |
| parent | fb439c975a2de33f5b0c317f3fdea49dc94b27dc (diff) | |
| download | libgit2-361ebbcbbc939b73e40f09f1d71972e91414e323.tar.gz | |
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.
Diffstat (limited to 'tests/config')
| -rw-r--r-- | tests/config/stress.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/config/stress.c b/tests/config/stress.c index ea54c7acf..28c3c4ac0 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 |
