aboutsummaryrefslogtreecommitdiff
path: root/tests/tforlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tforlan.c')
-rw-r--r--tests/tforlan.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/tforlan.c b/tests/tforlan.c
index 403438e..64f84e1 100644
--- a/tests/tforlan.c
+++ b/tests/tforlan.c
@@ -176,13 +176,14 @@ main(int argc, char **argv)
if (options & OPT_SORT)
grecs_tree_sort(tree, node_ident_cmp);
- forlan_run(env, tree);
+ rc = forlan_run(env, tree);
grecs_tree_free(tree);
- }
+ } else
+ rc = 0;
forlan_free_environment(env);
- return 0;
+ return rc;
}

Return to:

Send suggestions and report system problems to the System administrator.