[PATCH v9] eal: RTE_PTR_ADD/SUB char* for compiler optimizations
Stephen Hemminger
stephen at networkplumber.org
Sun Jan 18 07:12:11 CET 2026
On Sat, 17 Jan 2026 13:03:22 -0800
scott.k.mitch1 at gmail.com wrote:
> +/* Main test function that runs all subtests */
> +static int
> +test_ptr_add_sub(void)
> +{
> + int ret;
> +
> + ret = test_ptr_add_sub_integer_types();
> + if (ret != 0)
> + return ret;
> +
> + ret = test_ptr_add_sub_pointer_types();
> + if (ret != 0)
> + return ret;
> +
> + return 0;
> +}
> +
Ok, but if you add more tests consider using the unit_test_runner()
in test.h. Mainly because it makes it easier to pinpoint which subtest is failing
in a big test.
More information about the dev
mailing list