]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libsframe: testsuite: make test names unique
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 22:26:10 +0000 (15:26 -0700)
commit4dc07bf60c0455e13da694623f14355e02d5ac47
tree4bd39fdae9fba670c1a120b16bfc8a8b8a8b46bc
parentb6ac5a8a5b82f0ae6a4642c8d7149b325f4cc60a
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