From b4e30d8c7624a4516b1e5f88d445ae651a1e8f13 Mon Sep 17 00:00:00 2001 From: Adam Murray Date: Fri, 1 Nov 2024 15:03:23 +1000 Subject: [PATCH] add test Signed-off-by: Adam Murray --- t/t0210-trace2-normal.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/t/t0210-trace2-normal.sh b/t/t0210-trace2-normal.sh index b9adc94aab4165..4047ab562a455e 100755 --- a/t/t0210-trace2-normal.sh +++ b/t/t0210-trace2-normal.sh @@ -244,6 +244,14 @@ test_expect_success 'bug messages followed by BUG() are written to trace2' ' test_cmp expect actual ' +test_expect_success 'empty configuration values are handled' ' + test_when_finished "rm trace2.normal actual expect" && + echo >expect && + GIT_TRACE2="$(pwd)/trace2.normal" GIT_TRACE2_CONFIG_PARAMS=foo.empty \ + git -c foo.empty config foo.empty >actual && + test_cmp expect actual +' + sane_unset GIT_TRACE2_BRIEF # Now test without environment variables and get all Trace2 settings