From 4c26995e41f99a00b99f60ee6013f27b3f5c9e73 Mon Sep 17 00:00:00 2001 From: c9s Date: Sun, 1 Jun 2014 02:13:38 +0800 Subject: [PATCH] assert errno == NULL --- tests/check_tree.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/check_tree.c b/tests/check_tree.c index ee43441..b3c969c 100644 --- a/tests/check_tree.c +++ b/tests/check_tree.c @@ -107,7 +107,10 @@ START_TEST (test_pcre_patterns_insert) char *errstr = NULL; - r3_tree_compile(n, &errstr); + int errno; + errno = r3_tree_compile(n, &errstr); + assert(errno == 0); // no error + // r3_tree_dump(n, 0); node *matched;