aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2020-10-24 11:14:37 +0200
committerMarc André Tanner <mat@brain-dump.org>2020-10-24 11:14:37 +0200
commit61db6e4135d16baa24861ba656ff55ff0c3251b5 (patch)
tree181a6811a77c2bdb34036d9e0f5c7445f2d74042
parent8f0112e1cc0ad2f8688dd4714929b4f6b115fa1b (diff)
downloadvis-61db6e4135d16baa24861ba656ff55ff0c3251b5.tar.gz
vis-61db6e4135d16baa24861ba656ff55ff0c3251b5.tar.xz
text/core: skip failing I/O test on Cygwin
Cygwin does seemingly not support overlapping mmap(2) regions.
-rw-r--r--core/text-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/text-test.c b/core/text-test.c
index b448047..0136657 100644
--- a/core/text-test.c
+++ b/core/text-test.c
@@ -134,6 +134,10 @@ int main(int argc, char *argv[]) {
for (size_t l = 0; l < LENGTH(load_method); l++) {
for (size_t s = 0; s < LENGTH(save_method); s++) {
+#ifdef __CYGWIN__
+ if (load_method[l] == TEXT_LOAD_MMAP && save_method[s] == TEXT_SAVE_INPLACE)
+ continue;
+#endif
snprintf(buf, sizeof buf, "Hello World: (%zu, %zu)\n", l, s);
txt = text_load_method(filename, load_method[l]);
ok(txt, "Load (%zu, %zu)", l, s);