Skip to content
This repository was archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Report reason for skipped tests on summary line
Browse files Browse the repository at this point in the history
  • Loading branch information
slowfranklin committed Aug 19, 2013
1 parent ac19a3b commit cb20730
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/afphelper.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,11 +756,13 @@ int not_valid_bitmap(unsigned int ret, unsigned int bitmap, int netatalk_error)

static int CurTestResult;
static char *Why;
#define SKIPPED_MSG_BUFSIZE 256
static char skipped_msg_buf[SKIPPED_MSG_BUFSIZE];

/* ------------------------- */
void test_skipped(int why)
{
char *s;
char *s;
switch(why) {
case T_CONN2:
s = "second user";
Expand Down Expand Up @@ -817,7 +819,7 @@ char *s;
s = "volume without option 'followsymlinks'";
break;
}
fprintf(stdout,"\tSKIPPED (need %s)\n",s);
snprintf(skipped_msg_buf, sizeof(skipped_msg_buf), "SKIPPED (need %s)", s);
CurTestResult = 3;
}

Expand Down Expand Up @@ -891,7 +893,7 @@ void exit_test(char *name)
s = "NOT TESTED";
break;
case 3:
s = "SKIPPED";
s = skipped_msg_buf;
break;
}
fprintf(stdout, "%s - summary - ", name);
Expand Down

0 comments on commit cb20730

Please sign in to comment.