summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2016-04-06 16:12:26 -0700
committerJosh Haberman <jhaberman@gmail.com>2016-04-06 16:12:26 -0700
commit8823fa6069452c86325b4d5a6065a0d4fd67f1a2 (patch)
tree39cb7c59737895b757c0a830b166d6ed69e83027 /tests
parentf8c26358f0b87a9c90be3f038cdea5bdcae185a0 (diff)
Refactored upb_def_freeze() a bit per PR comments.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_def.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_def.c b/tests/test_def.c
index cc766e0..de3bcb2 100644
--- a/tests/test_def.c
+++ b/tests/test_def.c
@@ -402,6 +402,7 @@ static void test_mapentry_check() {
/* Should not have succeeded: non-repeated field pointing to a MapEntry. */
ASSERT(!upb_ok(&s));
+ upb_status_clear(&s);
upb_fielddef_setlabel(f, UPB_LABEL_REPEATED);
upb_symtab_add(symtab, defs, 2, NULL, &s);
ASSERT(upb_ok(&s));
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback