Changeset 9eb1ff5 in mainline for uspace/lib/pcut/src/report/xml.c


Ignore:
Timestamp:
2017-12-08T14:47:08Z (8 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1694b6b
Parents:
6fb8b2c
Message:

Update PCUT

Updated PCUT to commit 7ce059f.

Notable changes include:

  • overall summary is printed when tests finish
  • when tests passed, the status message does not use the word 'failure'
  • program exit code is zero only when all tests passed

These changes fixes tickets 713 and 714.

http://www.helenos.org/ticket/713
http://www.helenos.org/ticket/714

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcut/src/report/xml.c

    r6fb8b2c r9eb1ff5  
    135135        const char *status_str = NULL;
    136136
    137         if (outcome != TEST_OUTCOME_PASS) {
     137        if (outcome != PCUT_OUTCOME_PASS) {
    138138                failed_tests_in_suite++;
    139139        }
    140140
    141141        switch (outcome) {
    142         case TEST_OUTCOME_PASS:
     142        case PCUT_OUTCOME_PASS:
    143143                status_str = "pass";
    144144                break;
    145         case TEST_OUTCOME_FAIL:
     145        case PCUT_OUTCOME_FAIL:
    146146                status_str = "fail";
    147147                break;
    148         case TEST_OUTCOME_ERROR:
     148        default:
    149149                status_str = "error";
    150                 break;
    151         default:
    152                 /* Shall not get here. */
    153150                break;
    154151        }
Note: See TracChangeset for help on using the changeset viewer.