mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
18 lines
419 B
JavaScript
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.");
|
|
}
|
|
})();
|