summaryrefslogtreecommitdiff
path: root/test/format/wts.c
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2014-10-16 18:59:40 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2014-10-16 19:58:17 -0400
commit6828f17265878e40b40e2992c1791a0c6806ff8c (patch)
tree8baee85e7218dbad9725fcc8743baf4833298cb8 /test/format/wts.c
parent185694d3494ce6817cd854feaff7169fb41dd13d (diff)
downloadmongo-6828f17265878e40b40e2992c1791a0c6806ff8c.tar.gz
Port all examples, most tests, and wtperf to Windows
Added windows_shim to emulate most functions
Diffstat (limited to 'test/format/wts.c')
-rw-r--r--test/format/wts.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/format/wts.c b/test/format/wts.c
index 97136be159d..2626959d9ef 100644
--- a/test/format/wts.c
+++ b/test/format/wts.c
@@ -92,7 +92,10 @@ wts_open(const char *home, int set_api, WT_CONNECTION **connp)
if (snprintf(config, sizeof(config),
"create,"
"checkpoint_sync=false,cache_size=%" PRIu32 "MB,"
- "buffer_alignment=512,lsm_manager=(worker_thread_max=%" PRIu32
+#ifndef _WIN32
+ "buffer_alignment=512"
+#endif
+ ",lsm_manager=(worker_thread_max=%" PRIu32
"),error_prefix=\"%s\","
"%s,%s,%s,%s,%s"
"extensions="
@@ -100,7 +103,11 @@ wts_open(const char *home, int set_api, WT_CONNECTION **connp)
"%s,%s",
g.c_cache,
g.c_lsm_worker_threads,
+#ifndef _WIN32
g.progname,
+#else
+ "t_format.exe",
+#endif
g.c_data_extend ? "file_extend=(data=8MB)" : "",
g.c_logging ? "log=(enabled=true)" : "",
g.c_mmap ? "mmap=true" : "mmap=false",