testsuite: use binary output mode for custom curl test tools
authorMarc Hoersken <info@marc-hoersken.de>
Fri, 31 Jan 2014 23:58:58 +0000 (00:58 +0100)
committerMarc Hoersken <info@marc-hoersken.de>
Fri, 14 Feb 2014 19:12:27 +0000 (20:12 +0100)
commit75f00de55c6e8adc513f9ee32383b11e23106a40
treedec52068788034aa173e68d4c220dabfac4454ba
parent69745aaa45634308c1dca29cbb7881001c6efc5d
testsuite: use binary output mode for custom curl test tools

Do not try to convert line-endings to CRLF on Windows by setting stdout
to binary mode, just like the curl tool does if --ascii is not specified.

This should prevent corrupted stdout line-ending output like CRCRLF.

In order to make the previously naive text-aware tests work with
binary mode on Windows, text-mode is disabled for them if it is not
actually part of the test case and line-endings are corrected.
41 files changed:
tests/data/test1508
tests/data/test1900
tests/data/test1901
tests/data/test1902
tests/data/test1903
tests/data/test500
tests/data/test502
tests/data/test506
tests/data/test508
tests/data/test509
tests/data/test510
tests/data/test512
tests/data/test514
tests/data/test515
tests/data/test516
tests/data/test517
tests/data/test519
tests/data/test522
tests/data/test523
tests/data/test535
tests/data/test536
tests/data/test539
tests/data/test543
tests/data/test544
tests/data/test545
tests/data/test549
tests/data/test550
tests/data/test554
tests/data/test557
tests/data/test558
tests/data/test561
tests/data/test566
tests/data/test571
tests/data/test574
tests/data/test575
tests/data/test576
tests/data/test578
tests/data/test579
tests/data/test584
tests/data/test598
tests/libtest/first.c