Changeset 9b20126 in mainline for uspace/lib/pcut/src/print.c


Ignore:
Timestamp:
2014-09-19T08:23:01Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c85a57f
Parents:
15d0046
Message:

Update PCUT to newest version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcut/src/print.c

    r15d0046 r9b20126  
    4848                switch (it->kind) {
    4949                case PCUT_KIND_TEST:
    50                         printf("TEST %s (%p)\n", it->test.name, it->test.func);
     50                        printf("TEST %s\n", it->name);
    5151                        break;
    5252                case PCUT_KIND_TESTSUITE:
    53                         printf("SUITE %s\n", it->suite.name);
     53                        printf("SUITE %s\n", it->name);
    5454                        break;
    5555                case PCUT_KIND_SKIP:
     
    7272 */
    7373void pcut_print_tests(pcut_item_t *first) {
    74         for (pcut_item_t *it = pcut_get_real(first); it != NULL; it = pcut_get_real_next(it)) {
     74        pcut_item_t *it;
     75        for (it = pcut_get_real(first); it != NULL; it = pcut_get_real_next(it)) {
    7576                switch (it->kind) {
    7677                case PCUT_KIND_TESTSUITE:
    77                         printf("  Suite `%s' [%d]\n", it->suite.name, it->id);
     78                        printf("  Suite `%s' [%d]\n", it->name, it->id);
    7879                        break;
    7980                case PCUT_KIND_TEST:
    80                         printf("    Test `%s' [%d]\n", it->test.name, it->id);
     81                        printf("    Test `%s' [%d]\n", it->name, it->id);
    8182                        break;
    8283                default:
Note: See TracChangeset for help on using the changeset viewer.