Skip to content

Commit a244dc5

Browse files
carenasgitster
authored andcommitted
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>
1 parent abd4d67 commit a244dc5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/test-lib.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,6 +1686,10 @@ build_option () {
16861686
sed -ne "s/^$1: //p"
16871687
}
16881688

1689+
test_lazy_prereq SIZE_T_IS_64BIT '
1690+
test 8 -eq "$(build_option sizeof-size_t)"
1691+
'
1692+
16891693
test_lazy_prereq LONG_IS_64BIT '
16901694
test 8 -le "$(build_option sizeof-long)"
16911695
'

0 commit comments

Comments
 (0)