From be37b80bf42b4547991f59dad55c295570318d61 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 6 Sep 2010 15:20:37 +0200 Subject: added assertion for test 9 --- tests/test9.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/test9.cpp b/tests/test9.cpp index 07c1348..e3ae237 100644 --- a/tests/test9.cpp +++ b/tests/test9.cpp @@ -35,10 +35,10 @@ using namespace std; const int NOF_PRODUCERS = 10; const int NOF_CONSUMERS = 10; -const int NOF_PRODUCER_TRANSACTIONS = 100; -const int NOF_PRODUCER_OPS = 100; -const int NOF_CONSUMER_TRANSACTIONS = 100; -const int NOF_CONSUMER_OPS = 100; +const int NOF_PRODUCER_TRANSACTIONS = 10; +const int NOF_PRODUCER_OPS = 10; +const int NOF_CONSUMER_TRANSACTIONS = 10; +const int NOF_CONSUMER_OPS = 10; #define UNUSED( x ) if( 0 && (x) ) { } @@ -180,6 +180,11 @@ int main( ) { } MUTEX_CLEANUP( cout_mutex ); + + result r = c.exec( "select count(*) from x" ); + int count; + r[0][0].to( count ); + assert( count == NOF_PRODUCERS * NOF_PRODUCER_TRANSACTIONS * NOF_PRODUCER_OPS ); } catch( const sql_error& e ) { cerr << e.what( ) << ": " << e.query( ) << endl; -- cgit v1.2.3-54-g00ecf