Skip to content

Commit

Permalink
make_test_*: skip comment lines
Browse files Browse the repository at this point in the history
  • Loading branch information
rhansen committed Jan 16, 2016
1 parent b5ce517 commit a414338
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/subsystem/testcases/make_test_cert.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ static void write_ASNums(
num;
for (ansr = num = 0; fgets(nbuf, 100, stdin) && nbuf[0] > ' ';)
{
// skip comments
if ('#' == nbuf[0])
continue;

struct ASNumberOrRangeA *asNumorRangep = NULL;
if (ansr >= 0)
asNumorRangep =
Expand Down Expand Up @@ -439,6 +443,10 @@ static int write_family(
int num;
for (num = 0; fgets(nbuf, 100, stdin) && nbuf[0] > ' ';)
{
// skip comments
if ('#' == nbuf[0])
continue;

struct IPAddressOrRangeA *ipAorRp = NULL;
if (ansr >= 0)
ipAorRp =
Expand Down
4 changes: 4 additions & 0 deletions tests/subsystem/testcases/make_test_crl.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ int main(
}
for (numcerts = 0; fgets(certbuf, 40, stdin) && certbuf[0] > ' ';)
{
// skip comments
if ('#' == certbuf[0])
continue;

long certnum;
char subjfile[80],
delta[20];
Expand Down
7 changes: 7 additions & 0 deletions tests/subsystem/testcases/make_test_manifest.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,13 @@ int main(
int num;
for (num = 0; fgets(curr_file, 128, stdin) && curr_file[0] > ' '; num++)
{
// skip comments
if ('#' == curr_file[0])
{
--num;
continue;
}

char *a;
int bad = 0;
for (a = curr_file; *a && *a > ' '; a++);
Expand Down

0 comments on commit a414338

Please sign in to comment.