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:
edbad13a
Parents:
4e6fb2f
git-author:
Jaroslav Jindrak <dzejrou@…> (2017-11-02 21:01:56)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:18)
Message:

cpp: added a test set that allows us to run tests and gather summary statistics about their results and then report those

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/src/internal/test/test.cpp

    r4e6fb2f r471e313  
    4747    bool test_suite::end()
    4848    {
    49         std::printf("[TEST END][%s][%lu OK][%lu FAIL]\n",
     49        std::printf("[TEST END][%s][%u OK][%u FAIL]\n",
    5050                    name(), succeeded_, failed_);
    5151        return ok_;
    5252    }
     53
     54    unsigned int test_suite::get_failed() const noexcept
     55    {
     56        return failed_;
     57    }
     58
     59    unsigned int test_suite::get_succeeded() const noexcept
     60    {
     61        return succeeded_;
     62    }
    5363}
Note: See TracChangeset for help on using the changeset viewer.