Changeset 1509 for trunk/test/Suite.h


Ignore:
Timestamp:
Sep 17, 2008, 10:56:30 PM (13 years ago)
Author:
Peter
Message:

fixes #437 and added support for having known issues in test::Suite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/Suite.h

    r1487 r1509  
    100100    bool test_stream(const T&) const;
    101101
     102    /**
     103       This function is similar to add(bool) and could be used to
     104       detect/count known issues. When the issue is fixed, one can
     105       replace the call to xadd(bool) with a call to add(bool).
     106
     107       If \a b is false a counter is incremented, which is used to in
     108       return_value() to generate some printout on how many known
     109       issues were detected.
     110
     111       If \a b is true, ok_ is set to false, becasue the known issue
     112       is no longer an issue and one should replace the call with a
     113       call to add(bool).
     114     */
     115    bool xadd(bool b);
     116
    102117  private:
     118    std::ofstream* dev_null_;
     119    unsigned int known_issues_;
     120    bool ok_;
    103121    bool verbose_;
    104     bool ok_;
    105     std::ofstream* dev_null_;
    106122
    107123  };
Note: See TracChangeset for help on using the changeset viewer.