2
files = listFiles( "/data/db" );
4
if ( files[ i ].name == "/data/db/diskfulltest" ) {
10
print( "path /data/db/diskfulltest/ missing, skipping diskfull test" );
15
port = allocatePorts( 1 )[ 0 ];
16
m = startMongoProgram( "mongod", "--port", port, "--dbpath", "/data/db/diskfulltest", "--nohttpinterface", "--bind_ip", "127.0.0.1" );
17
m.getDB( "diskfulltest" ).getCollection( "diskfulltest" ).save( { a: 6 } );
18
assert.soon( function() { return rawMongoProgramOutput().match( /dbexit: really exiting now/ ); }, "didn't see 'really exiting now'" );
19
assert( !rawMongoProgramOutput().match( /Got signal/ ), "saw 'Got signal', not expected. Output: " + rawMongoProgramOutput() );