Changeset 509738fd in mainline for uspace/lib/cpp/include/internal/test/test.hpp
- Timestamp:
- 2018-07-05T21:41:18Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d49bae9
- Parents:
- a6ca1bc
- git-author:
- Jaroslav Jindrak <dzejrou@…> (2017-11-02 17:59:05)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:18)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/internal/test/test.hpp
ra6ca1bc r509738fd 44 44 protected: 45 45 void report(bool, const char*); 46 void start(); 47 bool end(); 48 49 unsigned int failed_{}; 50 unsigned int succeeded_{}; 51 bool ok_{true}; 46 52 47 53 template<class... Args> … … 49 55 { 50 56 if (!assert_eq(std::forward<Args>(args)...)) 57 { 51 58 report(false, tname); 59 ++failed_; 60 ok_ = false; 61 } 52 62 else 63 { 53 64 report(true, tname); 65 ++succeeded_; 66 } 54 67 } 55 68
Note:
See TracChangeset
for help on using the changeset viewer.