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:
unknown 2008-03-04 17:07:55 +01:00
parent ea3ae3c470
commit 29b9fdff4b
2 changed files with 3 additions and 1 deletions

View file

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

View file

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