Re: [PATCH v9] eal: RTE_PTR_ADD/SUB char* for compiler optimizations

Stephen Hemminger
2026-01-18T06:12:24Z

On Sat, 17 Jan 2026 13:03:22 -0800
scott.k.mitch1@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.