diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2025-04-25 14:41:24 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2025-04-25 14:41:24 +0000 |
| commit | 44bab727dfe28451b777dc9e47db4f748b709182 (patch) | |
| tree | b8abab888105843c7f120357a1e010bfd6d5ef8c /testcode/unitldns.c | |
| parent | 0a6d797cf6eb751d7eb613900cd19803e05d905f (diff) | |
Diffstat (limited to 'testcode/unitldns.c')
| -rw-r--r-- | testcode/unitldns.c | 8 |
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); |
