Karl Berry wrote:
>     However, on MinGW all three tests fail because the program outputs CRLF
>     line endings, while the test suite creates files with LF ending.
>     (Not sure if you want to worry about this...) 
> 
> Not sure if I do either.  What do other (real) programs do?

Some programs, which produce output from given input (such as 'iconv' or
'diff') can use in the output the line termination convention they found
in the input. No command-line option required in this case.

Programs which produce output without input, such as hello, can either
accept a --binary option (whose effect is to invoke
SET_BINARY(fileno(stdout)) - see gnulib module 'binary') and have the
testsuite invoke the program with --binary. Or produce output with CR/LF
always, and have the testsuite use "tr -d '\015'" before the comparison.

Bruno


Reply via email to