diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-12-22 22:48:11 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-22 22:48:11 -0800 |
commit | 67b7017593d1ee878dd4aae9c51f81db1742752e (patch) | |
tree | 5c6952be4373bb3d72a537431132fb02d27d58d7 /t | |
parent | Merge branch 'ab/fetch-set-upstream-while-detached' (diff) | |
parent | common-main.c: call exit(), don't return (diff) | |
download | tgif-67b7017593d1ee878dd4aae9c51f81db1742752e.tar.xz |
Merge branch 'ab/common-main-cleanup'
Code clean-up.
* ab/common-main-cleanup:
common-main.c: call exit(), don't return
Diffstat (limited to 't')
-rw-r--r-- | t/helper/test-trace2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/t/helper/test-trace2.c b/t/helper/test-trace2.c index f93633f895..59b124bb5f 100644 --- a/t/helper/test-trace2.c +++ b/t/helper/test-trace2.c @@ -262,8 +262,9 @@ static int print_usage(void) * [] the "cmd_name" event has been generated. * [] this writes various "def_param" events for interesting config values. * - * We further assume that if we return (rather than exit()), trace2_cmd_exit() - * will be called by test-tool.c:cmd_main(). + * We return from here and let test-tool.c::cmd_main() pass the exit + * code to common-main.c::main(), which will use it to call + * trace2_cmd_exit(). */ int cmd__trace2(int argc, const char **argv) { |