summaryrefslogtreecommitdiff
path: root/testcode/unitldns.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2025-04-25 14:41:24 +0000
committerCy Schubert <cy@FreeBSD.org>2025-04-25 14:41:24 +0000
commit44bab727dfe28451b777dc9e47db4f748b709182 (patch)
treeb8abab888105843c7f120357a1e010bfd6d5ef8c /testcode/unitldns.c
parent0a6d797cf6eb751d7eb613900cd19803e05d905f (diff)
Diffstat (limited to 'testcode/unitldns.c')
-rw-r--r--testcode/unitldns.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/testcode/unitldns.c b/testcode/unitldns.c
index d226ee203c10..f8409fec71b1 100644
--- a/testcode/unitldns.c
+++ b/testcode/unitldns.c
@@ -172,10 +172,14 @@ rr_test_file(const char* input, const char* check)
if(txt_in[0] == 0 || txt_in[0] == '\n' || txt_in[0] == ';')
continue;
/* read check lines */
- if(!fgets(wire_chk, (int)bufs, chf))
+ if(!fgets(wire_chk, (int)bufs, chf)) {
printf("%s too short\n", check);
- if(!fgets(txt_chk, (int)bufs, chf))
+ unit_assert(0);
+ }
+ if(!fgets(txt_chk, (int)bufs, chf)) {
printf("%s too short\n", check);
+ unit_assert(0);
+ }
chlineno += 2;
if(vbmp) printf("%s:%d %s", check, chlineno-1, wire_chk);
if(vbmp) printf("%s:%d %s", check, chlineno, txt_chk);