]> sigrok.org Git - libsigrok.git/commit
tests: echo text input when rational conversion fails
authorGerhard Sittig <redacted>
Mon, 16 Jul 2018 19:00:06 +0000 (21:00 +0200)
committerUwe Hermann <redacted>
Sun, 22 Jul 2018 14:36:15 +0000 (16:36 +0200)
commit83a05ca9b3113b3c57658dead05a3bcd32713851
tree7c391dbbc53271a16ebc8065da01acf352826521
parented367d68203593224af3c9593cfef0662b56007c
tests: echo text input when rational conversion fails

The previous implementation only echoed the p/q conversion results _if_
the return code signalled success but the result was unexpected. Although
the errno value for failed conversion attempts (non-zero return codes)
is not too helpful, seeing which text input failed the test is desirable.
tests/strutil.c