mirror of https://github.com/nirenjan/libx52.git
x52test used to assume that a positive return code indicated a signal was received and a negative return code indicated an error in libx52. However, libx52 was changed a while back to return only a positive error code of type `libx52_error_code`. This commit changes that assumption, so that: * The first check is always against `LIBX52_SUCCESS`, to ensure that any change in the enumeration won't break the rest of the code. * Tests terminated by a signal return the negated value of the signal, i.e. -15 is SIGTERM and -2 is SIGINT. * Tests that fail within libx52 return a standard `libx52_error_code`. * Error printing uses `libx52_strerror`. Addresses #19. |
||
---|---|---|
.. | ||
cli | ||
test | ||
Makefile.am |