diff -r 2f3762ff90d8 -r 189183b37598 test/harness/testcaseio.c --- a/test/harness/testcaseio.c Sun Sep 29 22:51:27 2013 +0100 +++ b/test/harness/testcaseio.c Mon Oct 21 23:36:40 2013 +0100 @@ -23,7 +23,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; @@ -108,6 +108,24 @@ } 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,"CRLF")) + { + g_printerr( + "%s: Unrecognised style for newlines. Try LF or CRLF.\n",s); + g_free(s); + testcase_free(testcase); + testcase_parser_free(parser); + return NULL; + } + g_free(s); + } else if (!testcase->options && !strcmp(tag,"OPTIONS")) { testcase->options=g_strsplit(text,"\n",0);