]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: move dg-test cleanup code from gcc-dg.exp to its own file
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 18 Nov 2024 21:49:04 +0000 (16:49 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Mon, 18 Nov 2024 21:49:04 +0000 (16:49 -0500)
commitc9d21e19df2836b70365efbf759027b0f86a9b93
tree4c3c684aa420581f8a77e1116efc684173a26077
parent344356f781ddb7bf0abb11edf9bdd13f6802dea8
testsuite: move dg-test cleanup code from gcc-dg.exp to its own file

I need to use this cleanup logic for the testsuite for libdiagnostics
where it's too awkward to directly use gcc-dg.exp itself.

No functional change intended.

gcc/testsuite/ChangeLog:
* lib/dg-test-cleanup.exp: New file, from material moved from
lib/gcc-dg.exp.
* lib/gcc-dg.exp: Add load_lib of dg-test-cleanup.exp.
(cleanup-after-saved-dg-test): Move to lib/dg-test-cleanup.exp.
(dg-test): Likewise for override.
(initialize_prune_notes): Likewise.

libatomic/ChangeLog:
* testsuite/lib/libatomic.exp: Add
"load_gcc_lib dg-test-cleanup.exp".

libgomp/ChangeLog:
* testsuite/lib/libgomp.exp: Add
"load_gcc_lib dg-test-cleanup.exp".
libitm/ChangeLog:
* testsuite/lib/libitm.exp: Add
"load_gcc_lib dg-test-cleanup.exp".

libphobos/ChangeLog:
* testsuite/lib/libphobos-dg.exp: Add
"load_gcc_lib dg-test-cleanup.exp".

libstdc++-v3/ChangeLog:
* testsuite/lib/libstdc++.exp: Add
"load_gcc_lib dg-test-cleanup.exp".

libvtv/ChangeLog:
* testsuite/lib/libvtv.exp: Add
"load_gcc_lib dg-test-cleanup.exp".

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
gcc/testsuite/lib/dg-test-cleanup.exp [new file with mode: 0644]
gcc/testsuite/lib/gcc-dg.exp
libatomic/testsuite/lib/libatomic.exp
libgomp/testsuite/lib/libgomp.exp
libitm/testsuite/lib/libitm.exp
libphobos/testsuite/lib/libphobos-dg.exp
libstdc++-v3/testsuite/lib/libstdc++.exp
libvtv/testsuite/lib/libvtv.exp