diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-10-24 11:14:37 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-10-24 11:14:37 +0200 |
| commit | 61db6e4135d16baa24861ba656ff55ff0c3251b5 (patch) | |
| tree | 181a6811a77c2bdb34036d9e0f5c7445f2d74042 | |
| parent | 8f0112e1cc0ad2f8688dd4714929b4f6b115fa1b (diff) | |
| download | vis-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.c | 4 |
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); |
