]> git.ipfire.org Git - thirdparty/git.git/commit
unit-tests: do show relative file paths
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 25 Sep 2023 11:20:32 +0000 (11:20 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Nov 2023 23:16:27 +0000 (08:16 +0900)
commita2c5e294dbb095023e6c0d53b302c4363021f1b2
tree4f8e0069b2eb54a5b397db66ddcdfe390422ee09
parent0df903d402959e052b6fa927dfe447d92b81eaef
unit-tests: do show relative file paths

Visual C interpolates `__FILE__` with the absolute _Windows_ path of
the source file. GCC interpolates it with the relative path, and the
tests even verify that.

So let's make sure that the unit tests only emit such paths.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/unit-tests/test-lib.c