Skip to content

Commit fe611b8

Browse files
committed
add test
Signed-off-by: Adam Murray <ad@canva.com>
1 parent 25cd431 commit fe611b8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

t/t0210-trace2-normal.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,14 @@ test_expect_success 'bug messages followed by BUG() are written to trace2' '
244244
test_cmp expect actual
245245
'
246246

247+
test_expect_success 'empty configuration values are handled' '
248+
test_when_finished "rm trace2.normal actual expect" &&
249+
echo >expect &&
250+
GIT_TRACE2="$(pwd)/trace2.normal" GIT_TRACE2_CONFIG_PARAMS=foo.empty \
251+
git -c foo.empty config foo.empty >actual &&
252+
test_cmp expect actual
253+
'
254+
247255
sane_unset GIT_TRACE2_BRIEF
248256

249257
# Now test without environment variables and get all Trace2 settings

0 commit comments

Comments
 (0)