Changeset 3bacee1 in mainline for uspace/lib/pcut/tests/inithook.c


Ignore:
Timestamp:
2018-04-12T16:27:17Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3cf22f9
Parents:
76d0981d
git-author:
Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
git-committer:
Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
Message:

Make ccheck-fix again and commit more good files.

File:
1 edited

Legend:

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

    r76d0981d r3bacee1  
    3434static int init_counter = 0;
    3535
    36 static void init_hook(void) {
     36static void init_hook(void)
     37{
    3738        init_counter++;
    3839}
    3940
    40 PCUT_TEST_BEFORE {
     41PCUT_TEST_BEFORE
     42{
    4143        PCUT_ASSERT_INT_EQUALS(1, init_counter);
    4244        init_counter++;
    4345}
    4446
    45 PCUT_TEST(check_init_counter) {
     47PCUT_TEST(check_init_counter)
     48{
    4649        PCUT_ASSERT_INT_EQUALS(2, init_counter);
    4750}
    4851
    49 PCUT_TEST(check_init_counter_2) {
     52PCUT_TEST(check_init_counter_2)
     53{
    5054        PCUT_ASSERT_INT_EQUALS(2, init_counter);
    5155}
    5256
    5357
    54 PCUT_CUSTOM_MAIN(
    55         PCUT_MAIN_SET_INIT_HOOK(init_hook)
    56 );
     58PCUT_CUSTOM_MAIN(PCUT_MAIN_SET_INIT_HOOK(init_hook));
    5759
Note: See TracChangeset for help on using the changeset viewer.