Skip to content

Commit

Permalink
SERVER-1861 give test more opportunity to find eval op id
Browse files Browse the repository at this point in the history
  • Loading branch information
astaple committed Sep 28, 2010
1 parent 8f6b5ab commit db41161
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions jstests/evald.js
Expand Up @@ -57,10 +57,11 @@ doIt( "db.jstests_evald.count( { $where: function() { while( 1 ) { ; } } } )", t
doIt( "db.jstests_evald.count( { $where: function() { while( 1 ) { ; } } } )", false, true );
doIt( "while( true ) {;}", false );
doIt( "while( true ) {;}", true );
doIt( "while( 1 ) { db.jstests_evald.count( {i:10} ); }", true );
doIt( "while( 1 ) { db.jstests_evald.count( {i:10} ); }", false );
doIt( "while( 1 ) { db.jstests_evald.count(); }", true );
doIt( "while( 1 ) { db.jstests_evald.count(); }", false );
// the for loops are currently required, as a spawned op masks the parent op - see SERVER-1844
doIt( "while( 1 ) { for( var i = 0; i < 10000; ++i ) {;} db.jstests_evald.count( {i:10} ); }", true );
doIt( "while( 1 ) { for( var i = 0; i < 10000; ++i ) {;} db.jstests_evald.count( {i:10} ); }", false );
doIt( "while( 1 ) { for( var i = 0; i < 10000; ++i ) {;} db.jstests_evald.count(); }", true );
doIt( "while( 1 ) { for( var i = 0; i < 10000; ++i ) {;} db.jstests_evald.count(); }", false );

// these two are SERVER-1841
//doIt( "while( 1 ) { try { db.jstests_evald.count( {i:10} ); } catch ( e ) { } }", true );
Expand Down

0 comments on commit db41161

Please sign in to comment.