projects
/
transmission
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa6ad47
)
Disable part of mmap test on OpenBSD that depends on UBC
author
Mike Gelfand
<mikedld@mikedld.com>
Sat, 20 May 2017 10:34:23 +0000
(13:34 +0300)
committer
Mike Gelfand
<mikedld@mikedld.com>
Sat, 20 May 2017 10:34:23 +0000
(13:34 +0300)
libtransmission/file-test.c
patch
|
blob
|
history
diff --git
a/libtransmission/file-test.c
b/libtransmission/file-test.c
index 686d2c8f685a7779ad696b057d44b232ef56ed5a..9b12e8cb60afc30c4cddc4dc4aa04f4e58dd37d3 100644
(file)
--- a/
libtransmission/file-test.c
+++ b/
libtransmission/file-test.c
@@
-28,6
+28,10
@@
#define NATIVE_PATH_SEP "\\"
#endif
+#if !defined(__OpenBSD__)
+#define HAVE_UNIFIED_BUFFER_CACHE
+#endif
+
static tr_session* session;
static char* create_test_dir(char const* name)
@@
-1266,10
+1270,14
@@
static int test_file_map(void)
check_int_eq(0, memcmp(view, "test", 4));
+#ifdef HAVE_UNIFIED_BUFFER_CACHE
+
tr_sys_file_write_at(fd, "E", 1, 1, NULL, NULL);
check_int_eq(0, memcmp(view, "tEst", 4));
+#endif
+
check(tr_sys_file_unmap(view, 4, &err));
check(err == NULL);