From: Carlo Marcelo Arenas Belón Date: Tue, 2 Nov 2021 15:46:06 +0000 (+0000) Subject: test-lib: add prerequisite for 64-bit platforms X-Git-Tag: v2.35.0-rc0~127^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=970fa57f768a276bddbc4bd1450bb1c3feb20f2b;p=thirdparty%2Fgit.git test-lib: add prerequisite for 64-bit platforms Allow tests that assume a 64-bit `size_t` to be skipped in 32-bit platforms and regardless of the size of `long`. This imitates the `LONG_IS_64BIT` prerequisite. Signed-off-by: Carlo Marcelo Arenas Belón Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/t/test-lib.sh b/t/test-lib.sh index adaf03543e..af1a94c2c2 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -1642,6 +1642,10 @@ build_option () { sed -ne "s/^$1: //p" } +test_lazy_prereq SIZE_T_IS_64BIT ' + test 8 -eq "$(build_option sizeof-size_t)" +' + test_lazy_prereq LONG_IS_64BIT ' test 8 -le "$(build_option sizeof-long)" '