Ignore:
Timestamp:
2018-07-05T21:41:18Z (6 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/src/internal/test/test.cpp

    ra6ca1bc r509738fd  
    3232namespace std::test
    3333{
    34 
    3534    void test_suite::report(bool result, const char* tname)
    3635    {
     
    4140    }
    4241
     42    void test_suite::start()
     43    {
     44        std::printf("\n[TEST START][%s]\n", name());
     45    }
     46
     47    bool test_suite::end()
     48    {
     49        std::printf("[TEST END][%s][%lu OK][%lu FAIL]\n",
     50                    name(), succeeded_, failed_);
     51        return ok_;
     52    }
    4353}
Note: See TracChangeset for help on using the changeset viewer.