]> rtime.felk.cvut.cz Git - frescor/frsh-forb.git/commit
wvtest: Show stringified expressions in WVPASSEQ/NE
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 8 Feb 2011 15:34:33 +0000 (16:34 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 8 Feb 2011 16:08:40 +0000 (17:08 +0100)
commitee061f5077f7baa3ec337ca59a0f587de3231ee4
treee9cf5ee747b073f271c93fdeabb6eae8823c87d7
parentfd7a921d93e156589380af2dc0b8ef07a84accbf
wvtest: Show stringified expressions in WVPASSEQ/NE

Previously, WVPASSEQ(func(), 0) printed only "0 == 0 ok", whereas now,
it prints "func() == 0 == 0 ok". This is useful when the test fails so
that the real value is seen in the output e.g. "func() == 1 == 0 FAILED".
src/wvtest/c/wvtest.c
src/wvtest/c/wvtest.h