test/harness/testcase.c
changeset 5 f600b0d1fc5d
parent 3 ec364358631b
child 6 faab25d520dd
     1.1 --- a/test/harness/testcase.c	Thu Jan 26 23:35:52 2012 +0000
     1.2 +++ b/test/harness/testcase.c	Fri Jan 27 10:30:16 2012 +0000
     1.3 @@ -7,7 +7,7 @@
     1.4  #include <io.h>
     1.5  #endif
     1.6  #include <fcntl.h>
     1.7 -#include <gclib/gclib.h>
     1.8 +#include <bl/bl.h>
     1.9  #include "testcase.h"
    1.10  
    1.11  #if !HAVE_MKSTEMP
    1.12 @@ -124,9 +124,9 @@
    1.13  	return FALSE;
    1.14      }
    1.15      close(fd);
    1.16 -    command[0]=getenv("GUTCHECK");
    1.17 +    command[0]=getenv("BOOKLOUPE");
    1.18      if (!command[0])
    1.19 -	command[0]="." GC_DIR_SEPARATOR_S "gutcheck";
    1.20 +	command[0]="." BL_DIR_SEPARATOR_S "bookloupe";
    1.21      command[1]=input;
    1.22      command[2]=NULL;
    1.23      if (testcase->expected)
    1.24 @@ -157,7 +157,7 @@
    1.25  	fprintf(stderr,"%s: FAIL\n",testcase->basename);
    1.26  	offset=common_prefix_length(output,expected->str);
    1.27  	if (offset==header_len && !output[offset])
    1.28 -	    fprintf(stderr,"Unexpected zero warnings from gutcheck.\n");
    1.29 +	    fprintf(stderr,"Unexpected zero warnings from bookloupe.\n");
    1.30  	else
    1.31  	{
    1.32  	    endp=strchr(output+offset,'\n');
    1.33 @@ -171,7 +171,7 @@
    1.34  	    else
    1.35  		bol=report->str;
    1.36  	    col=offset-(bol-report->str);
    1.37 -	    fprintf(stderr,"Unexpected output from gutcheck:\n");
    1.38 +	    fprintf(stderr,"Unexpected output from bookloupe:\n");
    1.39  	    if (report->len>=header_len)
    1.40  		fprintf(stderr,"%s\n%*s^\n",report->str+header_len,col,"");
    1.41  	    else
    1.42 @@ -185,7 +185,7 @@
    1.43      string_free(expected,TRUE);
    1.44      mem_free(output);
    1.45      if (exit_status)
    1.46 -	fprintf(stderr,"gutcheck exited with code %d\n",r);
    1.47 +	fprintf(stderr,"bookloupe exited with code %d\n",r);
    1.48      if (!exit_status)
    1.49  	fprintf(stderr,"%s: PASS\n",testcase->basename);
    1.50      return !exit_status;