Re: Excluding FAILs from UNSUPPORTED test cases

Arsen Arsenović <[email protected]> Sun, 25 Sep 2022 12:52:16 +0200
Newsgroups gmane.comp.sysutils.dejagnu.general
Message-ID <4281542.A0WmAKaiRL@bstg>
Hi,

On Sunday, 25 September 2022 06:24:06 CEST you wrote:
> Running ${tool}-dg-prune earlier works both ways, allowing the
> callback prune routine to also remove or modify any output that might
> confuse the message-matching mechanism.  Really, given the documented
> (such as it is) feature for ${tool}-dg-prune to be able to declare
> the entire test unsupported, I would expect it to filter the results
> before messages are checked.
Re-reading the docs, I think you're right in terms of the semantics that 
the ${tool}-dg-prune callback should implement.

As a test, I re-ran the GCC test suite after moving the invocation of   
${tool}-dg-prune output to be right after ${tool}-dg-test (so, line 700 
of lib/dg.exp), which introduced 14361 new FAILs (but also fixed a few 
tests).  It'd appear that all but sixteen of these new fails are a 
result of the GCC-specific dg-message and multiline.exp, and some of 
those sixteen fail due to trying to test for the presence of strings 
they prune (i.e. they want to detect that there's at least one of some 
diagnostic, AFAICT).  I'll see if I can do anything to remedy these.

In the meanwhile, I filed a bug so that this issue can be tracked in 
the GNU bug tracker.

Thanks,
-- 
Arsen Arsenović
signature.asc (application/pgp-signature, 358 B)
-----BEGIN PGP SIGNATURE-----

iNUEABYKAH0WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCYzAyxV8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF
MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MwAKCRBSwpQwHqLE
k8d9AP9Yc3Hygh6M3KhBSidJN3/zIHekOMA0e6fnjkGm4pjLvgEAkqB8xc4W7bep
1ld6wlu0UsA+FgTuOAZOU3tCFlkH+gY=
=tBjK
-----END PGP SIGNATURE-----