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

    r275530a4 r4b54bd9  
    3131#include "tested.h"
    3232
    33 PCUT_INIT;
     33PCUT_INIT
    3434
    3535
     
    3737PCUT_TEST_SUITE(with_teardown);
    3838
    39 PCUT_TEST_AFTER
    40 {
     39PCUT_TEST_AFTER {
    4140        printf("This is teardown-function.\n");
    4241}
    4342
    44 PCUT_TEST(empty)
    45 {
     43PCUT_TEST(empty) {
    4644}
    4745
    48 PCUT_TEST(failing)
    49 {
     46PCUT_TEST(failing) {
    5047        PCUT_ASSERT_INT_EQUALS(10, intmin(1, 2));
    5148}
     
    5552PCUT_TEST_SUITE(with_failing_teardown);
    5653
    57 PCUT_TEST_AFTER
    58 {
     54PCUT_TEST_AFTER {
    5955        printf("This is failing teardown-function.\n");
    6056        PCUT_ASSERT_INT_EQUALS(42, intmin(10, 20));
    6157}
    6258
    63 PCUT_TEST(empty2)
    64 {
     59PCUT_TEST(empty2) {
    6560}
    6661
    67 PCUT_TEST(printing2)
    68 {
     62PCUT_TEST(printing2) {
    6963        printf("Printed before test failure.\n");
    7064        PCUT_ASSERT_INT_EQUALS(0, intmin(-17, -19));
    7165}
    7266
    73 PCUT_TEST(failing2)
    74 {
     67PCUT_TEST(failing2) {
    7568        PCUT_ASSERT_INT_EQUALS(12, intmin(3, 5));
    7669}
    7770
    7871
    79 PCUT_MAIN();
     72PCUT_MAIN()
Note: See TracChangeset for help on using the changeset viewer.