File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -91,9 +91,16 @@ test_expect_success 'test-tool env-helper reads config thanks to trace2' '
91
91
git config -l 2>err &&
92
92
grep "exceeded maximum include depth" err &&
93
93
94
+ # This validates that the assumption that we attempt to
95
+ # read the configuration and fail very early in the start-up
96
+ # sequence (due to trace2 subsystem), even before we notice
97
+ # that the directory named with "test-tool -C" does not exist
98
+ # and die. It is a dubious thing to test, though.
94
99
test_must_fail \
95
100
env HOME="$(pwd)/home" GIT_TEST_ENV_HELPER=true \
96
- test-tool -C cycle env-helper --type=bool --default=0 --exit-code GIT_TEST_ENV_HELPER 2>err &&
101
+ test-tool -C no-such-directory \
102
+ env-helper --type=bool --default=0 \
103
+ --exit-code GIT_TEST_ENV_HELPER 2>err &&
97
104
grep "exceeded maximum include depth" err
98
105
'
99
106
You can’t perform that action at this time.
0 commit comments