test/harness/testcase.h
changeset 20 411a8e696a47
parent 9 6a13fe0fc19e
child 96 8c2d6a0cf717
     1.1 --- a/test/harness/testcase.h	Mon Jan 30 00:36:31 2012 +0000
     1.2 +++ b/test/harness/testcase.h	Tue Feb 07 08:15:17 2012 +0000
     1.3 @@ -10,10 +10,35 @@
     1.4  } TestcaseError;
     1.5  
     1.6  typedef struct {
     1.7 +    guint line;
     1.8 +    guint column;		/* or 0 for unspecified */
     1.9 +} TestcaseLocation;
    1.10 +
    1.11 +typedef struct {
    1.12 +    /*
    1.13 +     * Does this warning relate to a real problem in the etext
    1.14 +     * (eg., error and false-negative).
    1.15 +     */
    1.16 +    gboolean is_real;
    1.17 +    /*
    1.18 +     * Do we "expect" BOOKLOUPE to get this wrong
    1.19 +     * (eg., false-negative and false-positive)
    1.20 +     */
    1.21 +    gboolean xfail;
    1.22 +    /*
    1.23 +     * For real problems, the first location should be the
    1.24 +     * actual location of the problem.
    1.25 +     */
    1.26 +    GSList *locations;
    1.27 +    char *text;
    1.28 +} TestcaseWarning;
    1.29 +
    1.30 +typedef struct {
    1.31      char *basename;
    1.32      char *tmpdir;
    1.33      GSList *inputs;
    1.34      char *expected;
    1.35 +    GSList *warnings;
    1.36      char *encoding;	/* The character encoding to talk to BOOKLOUPE in */
    1.37      char **options;
    1.38      enum {