Ignore:
Timestamp:
2018-07-05T21:41:18Z (7 years ago)
Author:
Dzejrou <dzejrou@…>
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)
Message:

cpp: improved the testing framework

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/internal/test/test.hpp

    ra6ca1bc r509738fd  
    4444        protected:
    4545            void report(bool, const char*);
     46            void start();
     47            bool end();
     48
     49            unsigned int failed_{};
     50            unsigned int succeeded_{};
     51            bool ok_{true};
    4652
    4753            template<class... Args>
     
    4955            {
    5056                if (!assert_eq(std::forward<Args>(args)...))
     57                {
    5158                    report(false, tname);
     59                    ++failed_;
     60                    ok_ = false;
     61                }
    5262                else
     63                {
    5364                    report(true, tname);
     65                    ++succeeded_;
     66                }
    5467            }
    5568
Note: See TracChangeset for help on using the changeset viewer.