]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: fix proc unsupported overriding in modules.exp [PR108899]
authorAlexandre Oliva <oliva@adacore.com>
Wed, 5 Apr 2023 14:27:28 +0000 (11:27 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 6 Apr 2023 01:43:01 +0000 (22:43 -0300)
commit673a2a6445a79bcce5ba433d6bbec4b99a1bc7c6
tree5d930fb73f18e38f6dce8d41c577a4c98a5c8c37
parent5229788da723442d51155693ab98f831e94d1d58
testsuite: fix proc unsupported overriding in modules.exp [PR108899]

The overrider of proc unsupported in modules.exp had two problems
reported by Thomas Schwinge, even after Jakub JelĂ­nek's fix:

- it remained in effect while running other dejagnu testsets

- it didn't quote correctly the argument list passed to it, which
  caused test names to be surrounded by curly braces, as in:

UNSUPPORTED: {...}

This patch fixes both issues, obsoleting and reverting Jakub's change,
by dropping the overrider and renaming the saved proc back, and by
using uplevel's argument list splicing.

Co-authored-by: Thomas Schwinge <thomas@codesourcery.com>
for  gcc/testsuite/ChangeLog

PR testsuite/108899
* g++.dg/modules/modules.exp (unsupported): Drop renaming.
Fix quoting.
gcc/testsuite/g++.dg/modules/modules.exp