Ignore:
Timestamp:
Aug 13, 2010, 7:30:03 PM (12 years ago)
Author:
Peter Johansson
Message:

new function exit_status in Suite and use it in all C++ tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/trac_test.cc

    r1127 r1162  
    3737{
    3838  using namespace theplu::svndigest;
     39  test::Suite suite(argc, argv);
    3940  bool ok=true;
    4041  std::ostream& my_out(std::cout);
     
    8889  ok &= test_no_anchor("r2:3a", my_out);
    8990
    90   if (ok)
    91     return 0;
    92   return -1;
     91  suite.add(ok);
     92  return suite.exit_status();
    9393}
    9494
Note: See TracChangeset for help on using the changeset viewer.