summaryrefslogtreecommitdiff
path: root/tests/test9.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test9.cpp')
-rw-r--r--tests/test9.cpp13
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;