bug-m4
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checks in m4 and different format of error messages


From: Eric Blake
Subject: Re: Checks in m4 and different format of error messages
Date: Wed, 19 Feb 2020 06:55:15 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

[moving to the public mailing list with permission]

On 2/18/20 9:01 AM, Mikhail Sviridov wrote:
Hi Gary, Eric

I'm not sure if there is any possibility to specify a pattern instead of
fixed text in the following line of checks/137.include and many other files
there:
dnl @error{}m4:stdin:1: cannot open `none': No such file or directory

because in our system we have a different format of the message:

cannot open `none': EDC5129I No such file or directory. (errno2=0x05620062)

The first solution that comes to mind is to change the error message under
@error macro, but is there any crossplatform way to do that or specify a
pattern instead of fixed text?

You didn't mention what system this is on.

If you'll look at the script checks/check-them, you will see that the testsuite already does some post-processing filtering on the actual m4 output to move it into a form that it can be compared against the expected output embedded in the tests themselves (for example, look at the setting and use of the $m4name variable). It sounds like your system's strerror() output (with the extra "EDC5129I" and "(errno2=0x05620062)" information) would be the perfect candidate for adding yet another filter to that script.

Patches are welcome.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]