]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: make check-functions-body dump expected and seen cases on failure.
authorTamar Christina <tamar.christina@arm.com>
Fri, 23 Sep 2022 09:56:30 +0000 (10:56 +0100)
committerTamar Christina <tamar.christina@arm.com>
Fri, 23 Sep 2022 09:56:30 +0000 (10:56 +0100)
commit50324a0d39b9e9d47e8959d7f7f2460b16e8f2a2
tree5a23bcdb2432d43066b72bbb2d23cb40766f5d05
parentb7fd7fb5011106c062df9275ca8fddcbce4ebdeb
testsuite: make check-functions-body dump expected and seen cases on failure.

Often times when a check_function_body check fails it can be quite hard to
figure out why as no additional information is provided.

This changes it so that on failures it prints out the regex expression it's
using and the text it's comparing against to the verbose log.

This makes it much easier to figure out why a test has failed.

gcc/testsuite/ChangeLog:

* lib/scanasm.exp (check_function_body): Add debug output to verbose log
on failure.
gcc/testsuite/lib/scanasm.exp