summaryrefslogtreecommitdiff
path: root/tests/getpart.pm
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2013-04-07 00:28:15 +0200
committerMarc Hoersken <info@marc-hoersken.de>2013-04-07 00:28:15 +0200
commite73db5dcbdff6763da5f8c97fe1070b4711d5a0a (patch)
tree508fd8f2f18a1cd75c75dee4ea8f31785178d3e5 /tests/getpart.pm
parent25f08de4d65a26c6aa8db5afd6e0a363060fe709 (diff)
downloadcurl-e73db5dcbdff6763da5f8c97fe1070b4711d5a0a.tar.gz
Revert "getpart.pm: Strip carriage returns to fix Windows support"
This reverts commit e51b23c925a2721cf7c29b2b376d3d8903cfb067. As discussed on the mailinglist, this was not the correct approach.
Diffstat (limited to 'tests/getpart.pm')
-rw-r--r--tests/getpart.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/getpart.pm b/tests/getpart.pm
index 2b4abf3b1..92a237830 100644
--- a/tests/getpart.pm
+++ b/tests/getpart.pm
@@ -213,10 +213,9 @@ sub compareparts {
# we cannot compare arrays index per index since with the base64 chunks,
# they may not be "evenly" distributed
- if($^O eq "MSWin32" || $^O eq "msys") {
- $first =~ s/\r\n/\n/g;
- $second =~ s/\r\n/\n/g;
- }
+ # NOTE: this no longer strips off carriage returns from the arrays. Is that
+ # really necessary? It ruins the testing of newlines. I believe it was once
+ # added to enable tests on win32.
if($first ne $second) {
return 1;