Skip to content

Commit 7eb6d69

Browse files
winterzksmurchison
authored andcommitted
vcard_test.c - compile without NDEBUG so assert isn't a no-op.
1 parent e4eb8d7 commit 7eb6d69

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: src/test/libicalvcard/vcard_test.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
#include <config.h>
1414
#endif
1515

16+
#if defined(NDEBUG)
17+
#undef NDEBUG
18+
#endif
19+
1620
#include "vcard.h"
1721

1822
#include <assert.h>
@@ -59,6 +63,7 @@ static void test_parse_file(const char *fname)
5963
size_t filesize;
6064
void *data = NULL;
6165
vcardcomponent *card;
66+
//krazy:cond=insecurenet
6267
const char *want =
6368
"BEGIN:VCARD\r\n"
6469
"VERSION:4.0\r\n"
@@ -92,7 +97,7 @@ static void test_parse_file(const char *fname)
9297
"X-LIC-ERROR;X-LIC-ERRORTYPE=RESTRICTION-CHECK:Failed restrictions for \r\n"
9398
" VERSION property. Expected 1 instances of the property and got 0\r\n"
9499
"END:VCARD\r\n";
95-
100+
//krazy:endcond=insecurenet
96101
fp = fopen(fname, "rb"); //on Windows, must open in binary mode
97102
if (fp == (FILE *)NULL) {
98103
fprintf(stderr, "Error: unable to open %s\n", fname);

0 commit comments

Comments
 (0)