Realloc did not have bad parameter autotest. Add them.
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Reviewed-by: David Christensen <drc@linux.vnet.ibm.com>
if (bad_ptr != NULL)
goto err_return;
+ /* rte_realloc expected to return null with inappropriate size */
+ bad_ptr = rte_realloc(NULL, size, align);
+ if (bad_ptr != NULL)
+ goto err_return;
+
/* rte_malloc expected to return null with inappropriate alignment */
align = 17;
size = 1024;
if (bad_ptr != NULL)
goto err_return;
+ /* rte_realloc expected to return null with inappropriate alignment */
+ bad_ptr = rte_realloc(NULL, size, align);
+ if (bad_ptr != NULL)
+ goto err_return;
+
return 0;
err_return: