diff options
author | Dan Pasette <dan@10gen.com> | 2014-12-17 21:32:11 -0500 |
---|---|---|
committer | Dan Pasette <dan@mongodb.com> | 2014-12-17 21:32:11 -0500 |
commit | 1f5fd1a3a46f2895eac1707f4180f71878d7ca1b (patch) | |
tree | 630e256c2786c525cf0eb95b2e5f7ab61e2a46a5 /jstests/disk | |
parent | ccb67f50ab49372b1ebe8dc027a47808ededf116 (diff) | |
download | mongo-1f5fd1a3a46f2895eac1707f4180f71878d7ca1b.tar.gz |
SERVER-16313 skip syncDelay option test on 32 bit platforms
Diffstat (limited to 'jstests/disk')
-rw-r--r-- | jstests/disk/datafile_options.js | 31 |
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."); |