Changeset 3bacee1 in mainline for uspace/lib/pcut/tests/beforeafter.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/beforeafter.c

    r76d0981d r3bacee1  
    4949PCUT_TEST_SUITE(suite_with_setup_and_teardown);
    5050
    51 PCUT_TEST_BEFORE {
     51PCUT_TEST_BEFORE
     52{
    5253        buffer = malloc(BUFFER_SIZE);
    5354        PCUT_ASSERT_NOT_NULL(buffer);
    5455}
    5556
    56 PCUT_TEST_AFTER {
     57PCUT_TEST_AFTER
     58{
    5759        free(buffer);
    5860        buffer = NULL;
    5961}
    6062
    61 PCUT_TEST(test_with_setup_and_teardown) {
     63PCUT_TEST(test_with_setup_and_teardown)
     64{
    6265        snprintf(buffer, BUFFER_SIZE - 1, "%d-%s", 56, "abcd");
    6366        PCUT_ASSERT_STR_EQUALS("56-abcd", buffer);
     
    6669PCUT_TEST_SUITE(another_without_setup);
    6770
    68 PCUT_TEST(test_without_any_setup_or_teardown) {
     71PCUT_TEST(test_without_any_setup_or_teardown)
     72{
    6973        PCUT_ASSERT_NULL(buffer);
    7074}
Note: See TracChangeset for help on using the changeset viewer.