Skip to content

Commit

Permalink
tests/stream-tcp-list.c : Convert unittests to new FAIL/PASS API
Browse files Browse the repository at this point in the history
  • Loading branch information
zazie-codes committed Nov 4, 2023
1 parent 1a132f4 commit 74eba57
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/tests/stream-tcp-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,15 +545,15 @@ static int StreamTcpReassembleTest01(void)
OverlapBSDBefore(UINT_MAX - 10);
OverlapBSDSame(UINT_MAX - 10);
OverlapBSDAfter(UINT_MAX - 10);
return 1;
PASS;
}


/** \test Vista Policy
*/
static int StreamTcpReassembleTest02(void)
{
OverlapVISTA(0);
FAIL_IF(OverlapVISTA(0) == 0);
OverlapVISTABefore(0);
OverlapVISTASame(0);
OverlapVISTAAfter(0);
Expand All @@ -572,15 +572,15 @@ static int StreamTcpReassembleTest02(void)
OverlapVISTABefore(UINT_MAX - 10);
OverlapVISTASame(UINT_MAX - 10);
OverlapVISTAAfter(UINT_MAX - 10);
return 1;
PASS;
}


/** \test Linux policy
*/
static int StreamTcpReassembleTest03(void)
{
OverlapLINUX(0);
FAIL_IF(OverlapLINUX(0) == 0);
OverlapLINUXBefore(0);
OverlapLINUXSame(0);
OverlapLINUXAfter(0);
Expand All @@ -599,14 +599,14 @@ static int StreamTcpReassembleTest03(void)
OverlapLINUXBefore(UINT_MAX - 10);
OverlapLINUXSame(UINT_MAX - 10);
OverlapLINUXAfter(UINT_MAX - 10);
return 1;
PASS;
}

/** \test policy Linux old
*/
static int StreamTcpReassembleTest04(void)
{
OverlapLINUXOLD(0);
FAIL_IF(OverlapLINUXOLD(0) == 0);
OverlapLINUXOLDBefore(0);
OverlapLINUXOLDSame(0);
OverlapLINUXOLDAfter(0);
Expand All @@ -625,14 +625,14 @@ static int StreamTcpReassembleTest04(void)
OverlapLINUXOLDBefore(UINT_MAX - 10);
OverlapLINUXOLDSame(UINT_MAX - 10);
OverlapLINUXOLDAfter(UINT_MAX - 10);
return 1;
PASS;
}

/** \test Solaris policy
*/
static int StreamTcpReassembleTest05(void)
{
OverlapSOLARIS(0);
FAIL_IF(OverlapSOLARIS(0) == 0);
OverlapSOLARISBefore(0);
OverlapSOLARISSame(0);
OverlapSOLARISAfter(0);
Expand All @@ -651,14 +651,14 @@ static int StreamTcpReassembleTest05(void)
OverlapSOLARISBefore(UINT_MAX - 10);
OverlapSOLARISSame(UINT_MAX - 10);
OverlapSOLARISAfter(UINT_MAX - 10);
return 1;
PASS;
}

/** \test policy 'last'
*/
static int StreamTcpReassembleTest06(void)
{
OverlapLAST(0);
FAIL_IF(OverlapLAST(0) == 0);
OverlapLASTBefore(0);
OverlapLASTSame(0);
OverlapLASTAfter(0);
Expand All @@ -677,7 +677,7 @@ static int StreamTcpReassembleTest06(void)
OverlapLASTBefore(UINT_MAX - 10);
OverlapLASTSame(UINT_MAX - 10);
OverlapLASTAfter(UINT_MAX - 10);
return 1;
PASS;
}

static int StreamTcpReassembleTest30 (void)
Expand Down

0 comments on commit 74eba57

Please sign in to comment.