[PATCH] Add selftests to selftest.c

Jeff Law law@redhat.com
Thu Aug 11 22:30:00 GMT 2016


On 08/09/2016 07:25 PM, David Malcolm wrote:
> This patch adds some initial selftesting of selftest.c/h itself.
> This may seem like overdoing it, but I have some followup patches
> that add non-trivial logic to selftest.c, which we should verify, so it
> makes sense to test the existing functionality and then build on that.
>
> Successfully bootstrapped&regrtested on x86_64-pc-linux-gnu.
>
> OK for trunk?
>
> gcc/ChangeLog:
> 	* selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
> 	* selftest.c (selftest::test_assertions): New function.
> 	(selftest::selftest_c_tests): New function.
> 	* selftest.h (selftest::selftest_c_tests): New declaration.
OK.
jeff



More information about the Gcc-patches mailing list