reorder: fix unit test for random starting point
authorReshma Pattan <reshma.pattan@intel.com>
Wed, 21 Oct 2015 10:50:44 +0000 (11:50 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 12 Nov 2015 15:49:00 +0000 (16:49 +0100)
commit0c24ec40e0ae2e69560762146eca543dc39812b9
treec0789e7001172a4ffb89acd3a80a172868b02f9f
parent83f44606348472a1dee2132e188b3b89bf077010
reorder: fix unit test for random starting point

The reorder library unit test was performed under the assumption that
the start sequence number was always 0.
This is not the case anymore as the start sequence number is initialized
by the first packet inserted into the reorder buffer.

This patch updates the unit test to reflect the new behavior.

Fixes: 7e1fa1de8a53 ("reorder: allow random number as starting point")

Reported-by: Mukesh Dua <mukesh.dua81@gmail.com>
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
app/test/test_reorder.c