@@ -386,61 +386,62 @@ class test7 : public benchmark::test_case
386386
387387int main (int argc, char ** argv)
388388{
389+ int retVal = 0 ;
389390 mapnik::parameters params;
390391 benchmark::handle_args (argc,argv,params);
391392 {
392393 test4 test_runner4 (params);
393- run (test_runner4," calloc" );
394+ retVal = retVal | run (test_runner4," calloc" );
394395 }
395396 {
396397 test1 test_runner (params);
397- run (test_runner," malloc/memcpy" );
398+ retVal = retVal | run (test_runner," malloc/memcpy" );
398399 }
399400 {
400401 test1b test_runner (params);
401- run (test_runner," malloc/memset" );
402+ retVal = retVal | run (test_runner," malloc/memset" );
402403 }
403404 {
404405 test1c test_runner (params);
405- run (test_runner," operator new/std::fill" );
406+ retVal = retVal | run (test_runner," operator new/std::fill" );
406407 }
407408 {
408409 test2 test_runner (params);
409- run (test_runner," operator new/memcpy" );
410+ retVal = retVal | run (test_runner," operator new/memcpy" );
410411 }
411412 {
412413 test3 test_runner (params);
413- run (test_runner," vector(N)" );
414+ retVal = retVal | run (test_runner," vector(N)" );
414415 }
415416 {
416417 test3b test_runner (params);
417- run (test_runner," vector/resize" );
418+ retVal = retVal | run (test_runner," vector/resize" );
418419 }
419420 {
420421 test3c test_runner (params);
421- run (test_runner," vector/assign" );
422+ retVal = retVal | run (test_runner," vector/assign" );
422423 }
423424 {
424425 test3d test_runner (params);
425- run (test_runner," deque(N)" );
426+ retVal = retVal | run (test_runner," deque(N)" );
426427 }
427428 {
428429 test5 test_runner (params);
429- run (test_runner," std::string range" );
430+ retVal = retVal | run (test_runner," std::string range" );
430431 }
431432 {
432433 test5b test_runner (params);
433- run (test_runner," std::string &[0]" );
434+ retVal = retVal | run (test_runner," std::string &[0]" );
434435 }
435436 {
436437 test6 test_runner (params);
437- run (test_runner," valarray" );
438+ retVal = retVal | run (test_runner," valarray" );
438439 }
439440#if BOOST_VERSION >= 105400
440441 {
441442 test7 test_runner (params);
442- run (test_runner," static_vector" );
443+ retVal = retVal | run (test_runner," static_vector" );
443444 }
444445#endif
445- return 0 ;
446+ return retVal ;
446447}
0 commit comments