1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 18:15:18 -07:00

Check xmain() return code in tests.

This commit is contained in:
Frank Denis 2013-12-31 18:37:05 +01:00
parent 3aa856474a
commit 3fbbffc2c6

View File

@ -29,7 +29,9 @@ int main(void)
if (sodium_init() != 0) { if (sodium_init() != 0) {
return 99; return 99;
} }
xmain(); if (xmain() != 0) {
return 99;
}
rewind(fp_res); rewind(fp_res);
if ((fp_out = fopen(TEST_NAME_OUT, "r")) == NULL) { if ((fp_out = fopen(TEST_NAME_OUT, "r")) == NULL) {
perror("fopen(" TEST_NAME_OUT ")"); perror("fopen(" TEST_NAME_OUT ")");