summaryrefslogtreecommitdiff
path: root/tests/odb
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2017-12-31 09:56:30 -0600
committerEdward Thomson <ethomson@edwardthomson.com>2018-02-01 16:50:30 -0800
commit909a19921bb25444c41ae1a38a06b9e1e371bf13 (patch)
tree298719994bc6699aa598601e7982e563191f1099 /tests/odb
parent624614b2d9c8e2c4a4b97065d508d69394e2cbdf (diff)
downloadlibgit2-909a19921bb25444c41ae1a38a06b9e1e371bf13.tar.gz
odb_loose: largefile tests only on 64 bit platforms
Only run the large file tests on 64 bit platforms. Even though we support streaming reads on objects, and do not need to fit them in memory, we use `size_t` in various places to reflect the size of an object.
Diffstat (limited to 'tests/odb')
-rw-r--r--tests/odb/largefiles.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/odb/largefiles.c b/tests/odb/largefiles.c
index 762f184b4..cd3651b4a 100644
--- a/tests/odb/largefiles.c
+++ b/tests/odb/largefiles.c
@@ -67,6 +67,10 @@ void test_odb_largefiles__streamwrite(void)
{
git_oid expected, oid;
+#ifndef GIT_ARCH_64
+ cl_skip();
+#endif
+
if (!cl_is_env_set("GITTEST_INVASIVE_FS_SIZE") ||
!cl_is_env_set("GITTEST_SLOW"))
cl_skip();
@@ -88,6 +92,10 @@ void test_odb_largefiles__streamread(void)
git_otype type;
int hdr_len, ret;
+#ifndef GIT_ARCH_64
+ cl_skip();
+#endif
+
if (!cl_is_env_set("GITTEST_INVASIVE_FS_SIZE") ||
!cl_is_env_set("GITTEST_SLOW"))
cl_skip();
@@ -165,7 +173,12 @@ void test_odb_largefiles__read_header(void)
size_t len;
git_otype type;
- if (!cl_is_env_set("GITTEST_INVASIVE_FS_SIZE"))
+#ifndef GIT_ARCH_64
+ cl_skip();
+#endif
+
+ if (!cl_is_env_set("GITTEST_INVASIVE_FS_SIZE") ||
+ !cl_is_env_set("GITTEST_SLOW"))
cl_skip();
writefile(&oid);