Changeset 4b54bd9 in mainline for uspace/lib/pcut/tests/inithook.c


Ignore:
Timestamp:
2018-09-12T13:23:03Z (6 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3da0ee4
Parents:
275530a4
Message:

Update PCUT to latest revision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcut/tests/inithook.c

    r275530a4 r4b54bd9  
    3030#include "tested.h"
    3131
    32 PCUT_INIT;
     32PCUT_INIT
    3333
    3434static int init_counter = 0;
    3535
    36 static void init_hook(void)
    37 {
     36static void init_hook(void) {
    3837        init_counter++;
    3938}
    4039
    41 PCUT_TEST_BEFORE
    42 {
     40PCUT_TEST_BEFORE {
    4341        PCUT_ASSERT_INT_EQUALS(1, init_counter);
    4442        init_counter++;
    4543}
    4644
    47 PCUT_TEST(check_init_counter)
    48 {
     45PCUT_TEST(check_init_counter) {
    4946        PCUT_ASSERT_INT_EQUALS(2, init_counter);
    5047}
    5148
    52 PCUT_TEST(check_init_counter_2)
    53 {
     49PCUT_TEST(check_init_counter_2) {
    5450        PCUT_ASSERT_INT_EQUALS(2, init_counter);
    5551}
    5652
    5753
    58 PCUT_CUSTOM_MAIN(PCUT_MAIN_SET_INIT_HOOK(init_hook));
     54PCUT_CUSTOM_MAIN(
     55        PCUT_MAIN_SET_INIT_HOOK(init_hook)
     56)
    5957
Note: See TracChangeset for help on using the changeset viewer.