summaryrefslogtreecommitdiff
path: root/t/chainlint/bash-array.test
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-07-29 16:10:11 +0200
committerJunio C Hamano <gitster@pobox.com>2025-07-29 08:50:35 -0700
commit5247da07b87ab16e57f67f3071db98c0263c40dd (patch)
treec5c5e609794f995be282d0465c89162eea9f0239 /t/chainlint/bash-array.test
parent16bd9f20a403117f2e0d9bcda6c6e621d3763e77 (diff)
meson: ensure correct "clar-decls.h" header is used
The "clar-decls.h" header gets generated by us to extract prototypes of unit test functions from our clar-based tests. This generated file is then written into "t/unit-tests/" and included via "unit-test.h". The intent of all this is that we can keep "-Wmissing-prototype" warnings enabled. If we had that warning disabled, it would be easy to miss in case any of the non-static functions had a typo in its name and thus wasn't picked up by our test case extractor. Including the file directly has a big downside though: if a source tree was built both with our Makefile and with Meson, then the Meson build would include the "clar-decls.h" file from our Makefile. And if those are out of sync we get compiler errors. We already fixed a similar issue in 4771501c0a (meson: ensure correct version-def.h is used, 2025-01-14). Let's do the same and pass the absolute path to "clar-decls.h" via a preprocessor define. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/chainlint/bash-array.test')
0 files changed, 0 insertions, 0 deletions