]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libsframe: testsuite: make test names unique users/ibhagat/try-pr33437
authorIndu Bhagat <indu.bhagat@oracle.com>
Thu, 18 Sep 2025 06:59:33 +0000 (23:59 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Thu, 2 Oct 2025 20:38:33 +0000 (13:38 -0700)
commitd80c3459ace7cd6ea1e942603ef6eba41bdc4865
tree141a2d97e34f35fa4d0d50a3a435b84586a112dd
parent0c757596f90f1ef7049dab7b1d78d4995018c453
libsframe: testsuite: make test names unique

Fix PR libsframe/33437 - libsframe test names are not unique

The TEST () macro definition originally in plt-findfre-2.c, was being
used to differentiate between multiple runs of the testcases.  Adapt
that definition a bit to allow for a variable number of arguments following
the test condition: A test name format string may be used by macro
users, such that the name of the tests are unique.

Move the new variadic TEST macro definition in the testsuite's common
header sframe-test.h, and use it throughout the testsuite.

Reviewed-by: Jens Remus <jremus@linux.ibm.com>
libsframe/testsuite/
PR libsframe/33437
* libsframe.decode/be-flipping.c: Use new TEST macro with
suffix.
* libsframe.decode/frecnt-1.c: Likewise.
* libsframe.decode/frecnt-2.c: Likewise.
* libsframe.encode/encode-1.c: Likewise.
* libsframe.find/findfre-1.c: Likewise.
* libsframe.find/findfunc-1.c: Likewise.
* libsframe.find/plt-findfre-1.c: Likewise.
* libsframe.find/plt-findfre-2.c: Likewise.
* sframe-test.h: Move the TEST macro definition to this
testsuite header.
libsframe/testsuite/libsframe.decode/be-flipping.c
libsframe/testsuite/libsframe.decode/frecnt-1.c
libsframe/testsuite/libsframe.decode/frecnt-2.c
libsframe/testsuite/libsframe.encode/encode-1.c
libsframe/testsuite/libsframe.find/findfre-1.c
libsframe/testsuite/libsframe.find/findfunc-1.c
libsframe/testsuite/libsframe.find/plt-findfre-1.c
libsframe/testsuite/libsframe.find/plt-findfre-2.c
libsframe/testsuite/sframe-test.h