summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/shell_quit.js
blob: 177211198467c52b96149596e9de98c37deee11f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(function() {
'use strict';
var checkShell = function(retCode) {
    var args = [
        "mongo",
        "--nodb",
        "--eval",
        "quit(" + retCode + ");",
    ];

    var actualRetCode = _runMongoProgram.apply(null, args);
    assert.eq(retCode, actualRetCode);
};

checkShell(0);
checkShell(5);
})();