int main() { mongo conn[1]; INIT_SOCKETS_FOR_WINDOWS; CONN_CLIENT_TEST; test_multiple_getmore( conn ); test_tailable( conn ); test_builder_api( conn ); test_bad_query( conn ); test_copy_cursor_data( conn ); mongo_destroy( conn ); return 0; }
int main() { mongo conn[1]; INIT_SOCKETS_FOR_WINDOWS; if( mongo_client( conn, TEST_SERVER, 27017 ) != MONGO_OK ) { printf( "Failed to connect" ); exit( 1 ); } test_multiple_getmore( conn ); test_tailable( conn ); test_builder_api( conn ); test_bad_query( conn ); test_copy_cursor_data( conn ); mongo_destroy( conn ); return 0; }