diff -r 2c88fd553e5d -r f44c530f80da test/harness/testcaseio.c --- a/test/harness/testcaseio.c Mon Feb 06 23:55:27 2012 +0000 +++ b/test/harness/testcaseio.c Sat Oct 26 18:47:33 2013 +0100 @@ -22,7 +22,7 @@ GError *err=NULL; char *s,*arg; const char *tag,*text; - gboolean found_tag=FALSE; + gboolean found_tag=FALSE,newlines_set=FALSE; parser=testcase_parser_new_from_file(filename); if (!parser) return NULL; @@ -88,6 +88,26 @@ } else if (!testcase->encoding && !strcmp(tag,"ENCODING")) testcase->encoding=g_strchomp(g_strdup(text)); + else if (!newlines_set && !strcmp(tag,"NEWLINES")) + { + newlines_set=TRUE; + s=g_strdup(text); + g_strchomp(s); + if (!strcmp(s,"LF")) + testcase->flags|=TESTCASE_UNIX_NEWLINES; + else if (!strcmp(s,"CR")) + testcase->flags|=TESTCASE_OS9_NEWLINES; + else if (strcmp(s,"CRLF")) + { + g_printerr( + "%s: Unrecognised style for newlines. Try CR or LF.\n",s); + g_free(s); + testcase_free(testcase); + testcase_parser_free(parser); + return NULL; + } + g_free(s); + } else if (!testcase->encoding && !strcmp(tag,"OPTIONS")) { testcase->options=g_strsplit(text,"\n",0);