Ignore:
Timestamp:
Aug 13, 2010, 7:30:03 PM (11 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/color_test.cc

    r1127 r1162  
    2121*/
    2222
     23#include "Suite.h"
     24
    2325#include "lib/Colors.h"
    2426
     
    2931{
    3032  using namespace theplu::svndigest;
    31   bool ok=true;
     33  test::Suite suite(argc, argv);
    3234
    3335  // The loop adds new authors to the author color map until all
     
    4850  // Test first and last color, expected to be the same.
    4951  if (r!=r_first || g!=g_first || b!=b_first) {
    50     ok=false;
     52    suite.add(false);
    5153    std::cerr << "Expected r,g,b "
    5254              << static_cast<int>(r_first) << ','
     
    5961  }
    6062
    61   if (ok)
    62     return 0;
    63   return -1;
     63 
     64  return suite.exit_status();
    6465}
Note: See TracChangeset for help on using the changeset viewer.