Changeset e1b4ae0 in mainline for uspace/srv/net/tcp/test/tqueue.c


Ignore:
Timestamp:
2017-09-11T07:05:21Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9713b0b
Parents:
975d528
Message:

Start adding tests for TCP conn module. Make sure all connections have been freed at the end of a test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tcp/test/tqueue.c

    r975d528 re1b4ae0  
    5757        /* We will be calling functions that perform logging */
    5858        rc = log_init("test-tcp");
    59         PCUT_ASSERT_INT_EQUALS(EOK, rc);
    60 }
     59        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     60
     61        rc = tcp_conns_init();
     62        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     63}
     64
     65PCUT_TEST_AFTER
     66{
     67        tcp_conns_fini();
     68}
     69
    6170
    6271/** Test  */
     
    7584        seg_cnt = 0;
    7685
     86        tcp_conn_lock(conn);
     87        tcp_conn_reset(conn);
     88        tcp_conn_unlock(conn);
    7789        tcp_conn_delete(conn);
    7890        PCUT_ASSERT_EQUALS(0, seg_cnt);
Note: See TracChangeset for help on using the changeset viewer.