diff options
author | Josh Haberman <jhaberman@gmail.com> | 2016-11-29 19:26:23 +0000 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2016-11-29 19:26:23 +0000 |
commit | ff99b3f46b2a5b887745d1d396d33802a1c39060 (patch) | |
tree | d6f27f43b8549849181a89fad393489bc1ecc64d /tests | |
parent | 16ca9309b35ddadd103d1542818ea75f0a567c92 (diff) |
Fixed some bugs surfaced by Travis.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_def.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_def.c b/tests/test_def.c index 669aed0..93622c1 100644 --- a/tests/test_def.c +++ b/tests/test_def.c @@ -53,8 +53,9 @@ static upb_symtab *load_test_proto(void *owner) { files_ptr = files; while (*files_ptr) { + bool ok; ASSERT(!upb_filedef_isfrozen(*files_ptr)); - bool ok = upb_symtab_addfile(s, *files_ptr, &status); + ok = upb_symtab_addfile(s, *files_ptr, &status); ASSERT(ok); ASSERT(upb_filedef_isfrozen(*files_ptr)); upb_filedef_unref(*files_ptr, &files); |