Unverified Commit 6ffc49e1 by Edward Thomson Committed by GitHub

Merge pull request #5136 from libgit2/ethomson/largefiles_32bit

largefile tests: only write 2GB on 32-bit platforms
parents 4df9f3c6 8eb910b0
......@@ -75,7 +75,11 @@ void test_object_tree_read__two(void)
}
#define BIGFILE "bigfile"
#define BIGFILE_SIZE (off_t)4 * 1024 * 1024 * 1024 /* 4 GiB */
#ifdef GIT_ARCH_64
# define BIGFILE_SIZE (size_t)4 * 1024 * 1024 * 1024 /* 4 GiB */
#else
# define BIGFILE_SIZE SIZE_MAX
#endif
void test_object_tree_read__largefile(void)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment