]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: split out parts of jit.dg/jit.exp into a new lib/valgrind.exp
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 1 Aug 2024 00:38:41 +0000 (20:38 -0400)
committerDavid Malcolm <dmalcolm@redhat.com>
Thu, 1 Aug 2024 00:38:41 +0000 (20:38 -0400)
commit64fbaf36a3834c394422cdf86985c7cc45179925
tree0657710ebb578af0bfd7342837fb5aebc1102538
parent55982d1682921fdaf595c28f84f63d600558d150
testsuite: split out parts of jit.dg/jit.exp into a new lib/valgrind.exp

I want to reuse some of the support for valgrind in jit.exp
in my upcoming testsuite for https://gcc.gnu.org/wiki/libdiagnostics
so this patch splits that out into a valgrind.exp.

No functional change intended.

gcc/testsuite/ChangeLog:
* jit.dg/jit.exp: Add load_lib valgrind.exp.
(proc report_leak): Move to valgrind.exp, and add argument
leak_report_function rather than hardcoding xfail.
(parse_valgrind_logfile): Likewise.
(fixed_host_execute): Pass xfail to parse_valgrind_logfile.
* lib/valgrind.exp: New file, based on the above.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/testsuite/jit.dg/jit.exp
gcc/testsuite/lib/valgrind.exp [new file with mode: 0644]