test-limits: improve test without target
authorWim Taymans <wtaymans@redhat.com>
Wed, 12 Aug 2015 11:16:28 +0000 (13:16 +0200)
committerWim Taymans <wtaymans@redhat.com>
Wed, 12 Aug 2015 11:16:28 +0000 (13:16 +0200)
commitf10bacc5f2c90c1cdfaf0f5550db46c4966501ac
treea9423043ca0f67092ec8fd4221f72ab89eab6d33
parentbbf71470f817b26bd57e69803e20afec942efe54
test-limits: improve test without target

When there is no target available, the unit test would fail with a
non-fatal error (because emulation would be done). The non-fatal error
would however not be overwritten by the real error when we exceed the
limits.

First relax the first compilation test to check for FATAL errors. Then
reset the program (and clear any non-fatal errors) before triggering
the next error.
testsuite/test-limits.c