tree-test: Don't return restricted exit codes

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
Derek Buitenhuis 2013-10-22 19:08:43 +01:00
parent fb13fe8342
commit 530cd2893e
1 changed files with 2 additions and 2 deletions

View File

@ -230,14 +230,14 @@ int main(void)
if (check(root) > 999) { if (check(root) > 999) {
av_log(NULL, AV_LOG_ERROR, "FATAL error %d\n", i); av_log(NULL, AV_LOG_ERROR, "FATAL error %d\n", i);
print(root, 0); print(root, 0);
return -1; return 1;
} }
if (!node) if (!node)
node = av_tree_node_alloc(); node = av_tree_node_alloc();
if (!node) { if (!node) {
av_log(NULL, AV_LOG_ERROR, "Memory allocation failure.\n"); av_log(NULL, AV_LOG_ERROR, "Memory allocation failure.\n");
return AVERROR(ENOMEM); return 1;
} }
av_tree_insert(&root, jj, cmp, &node); av_tree_insert(&root, jj, cmp, &node);