summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Pasette <dan@10gen.com>2014-12-17 21:32:11 -0500
committerDan Pasette <dan@mongodb.com>2014-12-17 21:32:11 -0500
commit1f5fd1a3a46f2895eac1707f4180f71878d7ca1b (patch)
tree630e256c2786c525cf0eb95b2e5f7ab61e2a46a5
parentccb67f50ab49372b1ebe8dc027a47808ededf116 (diff)
downloadmongo-1f5fd1a3a46f2895eac1707f4180f71878d7ca1b.tar.gz
SERVER-16313 skip syncDelay option test on 32 bit platforms
-rw-r--r--jstests/disk/datafile_options.js31
1 files changed, 18 insertions, 13 deletions
diff --git a/jstests/disk/datafile_options.js b/jstests/disk/datafile_options.js
index 9bd8de40fd7..0726f7f9494 100644
--- a/jstests/disk/datafile_options.js
+++ b/jstests/disk/datafile_options.js
@@ -52,22 +52,27 @@ testGetCmdLineOptsMongod({ config : "jstests/libs/config_files/disable_nopreallo
expectedResult);
// Test that --syncdelay is an alias for both mmapv1 and wiredtiger options
-jsTest.log("Testing syncdelay command line option");
-var expectedResult = {
- "parsed" : {
- "storage" : {
- "mmapv1" : {
- "syncPeriodSecs" : 2
- },
- "wiredTiger" : {
- "engineConfig" : {
- "checkpointDelaySecs" : 2
+// This test should only run on 64-bit systems that support WiredTiger
+if (db.serverBuildInfo().bits == 32) {
+ jsTest.log("Skipping syncdelay command line option on 32-bit");
+} else {
+ jsTest.log("Testing syncdelay command line option");
+ var expectedResult = {
+ "parsed" : {
+ "storage" : {
+ "mmapv1" : {
+ "syncPeriodSecs" : 2
+ },
+ "wiredTiger" : {
+ "engineConfig" : {
+ "checkpointDelaySecs" : 2
+ }
}
}
}
- }
-};
-testGetCmdLineOptsMongod({ syncdelay : 2 }, expectedResult);
+ };
+ testGetCmdLineOptsMongod({ syncdelay : 2 }, expectedResult);
+}
print(baseName + " succeeded.");