summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@mongodb.com>2017-02-14 10:57:35 -0500
committerGitHub <noreply@github.com>2017-02-14 10:57:35 -0500
commit152d4778f58fe8d9448c530c7cda07801499e8d7 (patch)
treeffef47fd4d001249a19fd85f1342018452253dc9 /ext
parente66634960eeaf60d1b13c26308053e0baf51030b (diff)
downloadmongo-152d4778f58fe8d9448c530c7cda07801499e8d7.tar.gz
WT-2909 Create automatable test verifying checkpoint integrity after errors (#3296)
FreeBSD's backtrace is the outlier, everybody else (OS X, Solaris, Linux) is using int types, not size_t.
Diffstat (limited to 'ext')
-rw-r--r--ext/test/fail_fs/fail_fs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/test/fail_fs/fail_fs.c b/ext/test/fail_fs/fail_fs.c
index 0ea4a7d5e00..9445dbf9aca 100644
--- a/ext/test/fail_fs/fail_fs.c
+++ b/ext/test/fail_fs/fail_fs.c
@@ -675,10 +675,10 @@ fail_fs_simulate_fail(FAIL_FILE_HANDLE *fail_fh, WT_SESSION *session,
{
FAIL_FILE_SYSTEM *fail_fs;
WT_EXTENSION_API *wtext;
-#ifdef __linux__
- int btret, i;
-#else
+#ifdef __FreeBSD__
size_t btret, i;
+#else
+ int btret, i;
#endif
void *bt[100];
char **btstr;
@@ -689,10 +689,10 @@ fail_fs_simulate_fail(FAIL_FILE_HANDLE *fail_fh, WT_SESSION *session,
(void)wtext->msg_printf(wtext, session,
"fail_fs: %s: simulated failure after %" PRId64
" %s operations\n", fail_fh->iface.name, nops, opkind);
-#ifdef __linux__
- btret = backtrace(bt, (int)(sizeof(bt) / sizeof(bt[0])));
-#else
+#ifdef __FreeBSD__
btret = backtrace(bt, sizeof(bt) / sizeof(bt[0]));
+#else
+ btret = backtrace(bt, (int)(sizeof(bt) / sizeof(bt[0])));
#endif
if ((btstr = backtrace_symbols(bt, btret)) != NULL) {
for (i = 0; i < btret; i++)