summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/shell_quit.js
blob: 7ff45368f00ff64c5d5ab2662bec2c24d4146db6 (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);
})();