Changeset 4b54bd9 in mainline for uspace/lib/pcut/tests/preinithook.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/preinithook.c

    r275530a4 r4b54bd9  
    3030#include "tested.h"
    3131
    32 PCUT_INIT;
     32PCUT_INIT
    3333
    3434static int init_counter = 1;
    3535
    36 static void init_hook(void)
    37 {
     36static void init_hook(void) {
    3837        init_counter++;
    3938}
    4039
    41 static void pre_init_hook(int *argc, char **argv[])
    42 {
     40static void pre_init_hook(int *argc, char **argv[]) {
    4341        (void) argc;
    4442        (void) argv;
     
    4644}
    4745
    48 PCUT_TEST_BEFORE
    49 {
     46PCUT_TEST_BEFORE {
    5047        PCUT_ASSERT_INT_EQUALS(4, init_counter);
    5148        init_counter++;
    5249}
    5350
    54 PCUT_TEST(check_init_counter)
    55 {
     51PCUT_TEST(check_init_counter) {
    5652        PCUT_ASSERT_INT_EQUALS(5, init_counter);
    5753}
    5854
    59 PCUT_TEST(check_init_counter_2)
    60 {
     55PCUT_TEST(check_init_counter_2) {
    6156        PCUT_ASSERT_INT_EQUALS(5, init_counter);
    6257}
    6358
    6459
    65 PCUT_CUSTOM_MAIN(PCUT_MAIN_SET_INIT_HOOK(init_hook),
    66     PCUT_MAIN_SET_PREINIT_HOOK(pre_init_hook));
     60PCUT_CUSTOM_MAIN(
     61        PCUT_MAIN_SET_INIT_HOOK(init_hook),
     62        PCUT_MAIN_SET_PREINIT_HOOK(pre_init_hook)
     63)
    6764
Note: See TracChangeset for help on using the changeset viewer.