Disable part of mmap test on OpenBSD that depends on UBC

This commit is contained in:
Mike Gelfand 2017-05-20 13:34:23 +03:00
parent fa6ad47f71
commit 6303bb2247
1 changed files with 8 additions and 0 deletions

View File

@ -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);