Changeset 2550 for trunk/test/Suite.cc


Ignore:
Timestamp:
Aug 12, 2011, 3:17:46 AM (10 years ago)
Author:
Peter
Message:

use macros EXIT_FAILURE and EXIT_SUCCESS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/Suite.cc

    r2455 r2550  
    2727#include <algorithm>
    2828#include <cmath>
     29#include <cstdlib>
    2930#include <fstream>
    3031#include <iostream>
     
    134135    if (ok()){
    135136      out() << "Test is ok.\n";
    136       return 0;
     137      return EXIT_SUCCESS;
    137138    }
    138139    out() << "Test failed.\n";
    139     return -1;
     140    return EXIT_FAILURE;
    140141  }
    141142
Note: See TracChangeset for help on using the changeset viewer.