diff options
| author | Carlo Marcelo Arenas Belón <carenas@gmail.com> | 2021-11-02 15:46:06 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-12-09 14:26:04 +0900 |
| commit | a244dc5b0a629290881641467c7a545de7508ab2 (patch) | |
| tree | bf5dcd6d5476b0bdcf1671ec4e2668af55abae7d | |
| parent | abd4d67ab0f84fff703fa14d9eebfd287b42daeb (diff) | |
| download | git-a244dc5b0a629290881641467c7a545de7508ab2.tar.xz | |
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 <carenas@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
| -rw-r--r-- | t/test-lib.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 9fa7c1d0f6..7d6e0f89d1 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -1686,6 +1686,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)" ' |
