0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/noPassthrough/shell_check_program_extension.js
2019-07-27 11:02:23 -04:00

18 lines
419 B
JavaScript

/**
* Tests that the shell correctly checks for program extensions in Windows environments.
*/
(function() {
'use strict';
if (_isWindows()) {
const filename = 'jstests/noPassthrough/libs/testWindowsExtension.bat';
clearRawMongoProgramOutput();
const result = runMongoProgram(filename);
assert.eq(result, 42);
} else {
jsTestLog("This test is only relevant for Windows environments.");
}
})();