diff options
author | Andreas Baumann <Andreas.Baumann@eurospider.com> | 2010-09-06 15:20:37 +0200 |
---|---|---|
committer | Andreas Baumann <Andreas.Baumann@eurospider.com> | 2010-09-06 15:20:37 +0200 |
commit | be37b80bf42b4547991f59dad55c295570318d61 (patch) | |
tree | 492cf2d07fc8a35701d5794223484ec4c429dd69 | |
parent | f6c143f4c4e4f0a8118596909114e34dfc496b92 (diff) | |
download | sqlitexx-be37b80bf42b4547991f59dad55c295570318d61.tar.gz sqlitexx-be37b80bf42b4547991f59dad55c295570318d61.tar.bz2 |
added assertion for test 9
-rw-r--r-- | tests/test9.cpp | 13 |
1 files 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; |