[PATCH v1] Testing HDIO_GETGEO Output Mismatch Error

Eugene Syromiatnikov esyr at redhat.com
Sat Mar 28 15:25:56 UTC 2020


On Fri, Mar 27, 2020 at 05:10:22PM +0530, Bran S wrote:
> The output that is written into `tests/hdio_getgeo-success.dir/out` is
> what we want right ?

"out" file contains the (filtered) strace output, "exp" contains the expected
output (judging by the way your test is written).

> How can I correct the expected output in `tests/hdio_getgeo-success.dir/out` ?

It's up to the test author to figure out what is to be corrected if the
strace's output doesn't meet the expected one; it can be both ways
(it's one of the reasons to write the tests: to check whether the
tested program behaves the expected way, and tests are an embodiment
of these expectations).



More information about the Strace-devel mailing list