Changeset 62101bee in mainline


Ignore:
Timestamp:
2019-02-12T14:40:30Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
401415a
Parents:
db29c34
Message:

updating PCUT_ASSERT_INT_EQUALS

PCUT has been updated but not the implementation
in HelenOS. One of the commits is needed for test
to be successfully built. The following commit
ba046671320958f4b23826c98716317b3ea80945 from
the repo vhotspur/pcut has been copied into HelenOS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcut/include/pcut/asserts.h

    rdb29c34 r62101bee  
    186186#define PCUT_ASSERT_INT_EQUALS(expected, actual) \
    187187        do {\
    188                 long pcut_expected_eval = (expected); \
    189                 long pcut_actual_eval = (actual); \
     188                long long pcut_expected_eval = (expected); \
     189                long long pcut_actual_eval = (actual); \
    190190                if (pcut_expected_eval != pcut_actual_eval) { \
    191                         PCUT_ASSERTION_FAILED("Expected <%ld> but got <%ld> (%s != %s)", \
     191                        PCUT_ASSERTION_FAILED("Expected <%lld> but got <%lld> (%s != %s)", \
    192192                                pcut_expected_eval, pcut_actual_eval, \
    193193                                #expected, #actual); \
Note: See TracChangeset for help on using the changeset viewer.