Commit 5dfdffeb authored by Derek Buitenhuis's avatar Derek Buitenhuis

tree-test: Don't return restricted exit codes

Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parent 94d707af
...@@ -225,7 +225,7 @@ int main(int argc, char **argv) ...@@ -225,7 +225,7 @@ int main(int argc, char **argv)
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;
} }
av_log(NULL, AV_LOG_DEBUG, "inserting %4d\n", (int)j); av_log(NULL, AV_LOG_DEBUG, "inserting %4d\n", (int)j);
...@@ -233,7 +233,7 @@ int main(int argc, char **argv) ...@@ -233,7 +233,7 @@ int main(int argc, char **argv)
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, (void *)(j + 1), cmp, &node); av_tree_insert(&root, (void *)(j + 1), cmp, &node);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment