Project

General

Profile

Actions

Bug #15203

closed

test-all WEBrick - fixes needed for Azure Pipelines - three asserts, line endings

Added by MSP-Greg (Greg L) over 5 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.6.0dev (2018-10-04 trunk 64913)
[ruby-core:89279]

Description

Attached is a patch with fixes needed for the test-all WEBrick tests when run on Azure pipelines (vc12, vc14, mingw). These have not been needed for Appveyor builds, nor for local testing on mingw builds.

The changes involve line endings in three asserts.

Given that these haven't appeared before, I not sure what or where the fixes should be...

Thanks, Greg


Files

ap_2018-10-04_1_test-webrick.patch (1.34 KB) ap_2018-10-04_1_test-webrick.patch MSP-Greg (Greg L), 10/04/2018 02:17 PM
Actions #1

Updated by naruse (Yui NARUSE) over 5 years ago

  • Status changed from Open to Closed

Applied in changeset trunk|r64924.


Use binread because webrick also uses binread

Reported-by: MSP-Greg [Bug #15203]

Updated by naruse (Yui NARUSE) over 5 years ago

I think it's because git on Azure Pipeline enables "Use CRLF" option.
Because of that those test files uses CRLF on the environment.
WEBrick reads file on binary mode, therefore responses are also CRLF text.
But the expect data in those tests uses text mode read; this is the cause of this issue.
I fixed this by using binread on reading test expect data.

Actions

Also available in: Atom PDF

Like0
Like0Like0