mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
Making ma_pagecache_rwconsist_1k-t unit test build under Windows
storage/maria/unittest/CMakeLists.txt: build unit test under Windows too storage/maria/unittest/ma_pagecache_rwconsist.c: portability fix for Windows
This commit is contained in:
parent
ea3ae3c470
commit
29b9fdff4b
2 changed files with 3 additions and 1 deletions
|
@ -93,3 +93,5 @@ SET_TARGET_PROPERTIES(ma_pagecache_consist_1kWR-t
|
|||
ADD_EXECUTABLE(ma_pagecache_consist_64kWR-t ${ma_pagecache_consist_src})
|
||||
SET_TARGET_PROPERTIES(ma_pagecache_consist_64kWR-t
|
||||
PROPERTIES COMPILE_FLAGS "${ma_pagecache_common_cppflags} -DTEST_PAGE_SIZE=65536 -DTEST_WRITERS")
|
||||
ADD_EXECUTABLE(ma_pagecache_rwconsist_1k-t ma_pagecache_rwconsist.c)
|
||||
SET_TARGET_PROPERTIES(ma_pagecache_rwconsist_1k-t PROPERTIES COMPILE_FLAGS "-DTEST_PAGE_SIZE=1024")
|
||||
|
|
|
@ -31,7 +31,7 @@ static const char* default_dbug_option;
|
|||
#endif
|
||||
|
||||
|
||||
#define SLEEP usleep(5)
|
||||
#define SLEEP my_sleep(5)
|
||||
|
||||
static char *file1_name= (char*)"page_cache_test_file_1";
|
||||
static PAGECACHE_FILE file1;
|
||||
|
|
Loading…
Reference in a new issue