Changeset 8ebc5b8a in mainline


Ignore:
Timestamp:
2017-08-27T11:59:59Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
868b0e9
Parents:
b33d140
Message:

Start adding unit tests to TCP.

Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.common

    rb33d140 r8ebc5b8a  
    237237        $(USPACE_PATH)/lib/posix/test-libposix \
    238238        $(USPACE_PATH)/lib/uri/test-liburi \
    239         $(USPACE_PATH)/app/bdsh/test-bdsh
     239        $(USPACE_PATH)/app/bdsh/test-bdsh \
     240        $(USPACE_PATH)/srv/net/tcp/test-tcp
    240241
    241242RD_DATA_ESSENTIAL = \
  • uspace/srv/net/tcp/Makefile

    rb33d140 r8ebc5b8a  
    5151        ucall.c
    5252
     53TEST_SOURCES = \
     54        pdu.c \
     55        segment.c \
     56        seq_no.c \
     57        test/main.c \
     58        test/pdu.c
     59
    5360include $(USPACE_PREFIX)/Makefile.common
  • uspace/srv/net/tcp/segment.c

    rb33d140 r8ebc5b8a  
    4343
    4444/** Alocate new segment structure. */
    45 tcp_segment_t *tcp_segment_new(void)
     45static tcp_segment_t *tcp_segment_new(void)
    4646{
    4747        return calloc(1, sizeof(tcp_segment_t));
  • uspace/srv/net/tcp/segment.h

    rb33d140 r8ebc5b8a  
    4040#include "tcp_type.h"
    4141
    42 extern tcp_segment_t *tcp_segment_new(void);
    4342extern void tcp_segment_delete(tcp_segment_t *);
    4443extern tcp_segment_t *tcp_segment_dup(tcp_segment_t *);
Note: See TracChangeset for help on using the changeset viewer.