testsuite: Run __bos tests to completion
commitdbc4db7e824719084ee32d02edcf2b6191a05f27
authorSiddhesh Poyarekar <siddhesh@gotplt.org>
Wed, 1 Feb 2023 16:41:22 +0000 (1 11:41 -0500)
committerSiddhesh Poyarekar <siddhesh@gotplt.org>
Wed, 1 Feb 2023 16:44:23 +0000 (1 11:44 -0500)
tree25c72ce5be30046662fcff96622fad1cdd96a459
parent8a7196977f6e91ad12c209cb2e3dbfe9f0fd3c3b
testsuite: Run __bos tests to completion

Instead of failing on first error, run all __builtin_object_size and
__builtin_dynamic_object_size tests to completion and then provide a
summary of which tests failed.

gcc/testsuite/ChangeLog:

* gcc.dg/builtin-dynamic-object-size-0.c: Move FAIL and nfail
into...
* gcc.dg/builtin-object-size-common.h: ... new file.
* g++.dg/ext/builtin-object-size1.C: Include
builtin-object-size-common.h.  Replace all abort with FAIL.
(main): Call DONE.
* g++.dg/ext/builtin-object-size2.C: Likewise.
* gcc.dg/builtin-object-size-1.c: Likewise.
* gcc.dg/builtin-object-size-12.c: Likewise.
* gcc.dg/builtin-object-size-13.c: Likewise.
* gcc.dg/builtin-object-size-15.c: Likewise.
* gcc.dg/builtin-object-size-2.c: Likewise.
* gcc.dg/builtin-object-size-3.c: Likewise.
* gcc.dg/builtin-object-size-4.c: Likewise.
* gcc.dg/builtin-object-size-6.c: Likewise.
* gcc.dg/builtin-object-size-7.c: Likewise.
* gcc.dg/builtin-object-size-8.c: Likewise.
* gcc.dg/pr101836.c: Likewise.
* gcc.dg/strict-flex-array-3.c: Likewise.

Signed-off-by: Siddhesh Poyarekar <siddhesh@gotplt.org>
16 files changed:
gcc/testsuite/g++.dg/ext/builtin-object-size1.C
gcc/testsuite/g++.dg/ext/builtin-object-size2.C
gcc/testsuite/gcc.dg/builtin-dynamic-object-size-0.c
gcc/testsuite/gcc.dg/builtin-object-size-1.c
gcc/testsuite/gcc.dg/builtin-object-size-12.c
gcc/testsuite/gcc.dg/builtin-object-size-13.c
gcc/testsuite/gcc.dg/builtin-object-size-15.c
gcc/testsuite/gcc.dg/builtin-object-size-2.c
gcc/testsuite/gcc.dg/builtin-object-size-3.c
gcc/testsuite/gcc.dg/builtin-object-size-4.c
gcc/testsuite/gcc.dg/builtin-object-size-6.c
gcc/testsuite/gcc.dg/builtin-object-size-7.c
gcc/testsuite/gcc.dg/builtin-object-size-8.c
gcc/testsuite/gcc.dg/builtin-object-size-common.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr101836.c
gcc/testsuite/gcc.dg/strict-flex-array-3.c