Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure on rakudo star 2014.12 (Windows 7) #7

Closed
azawawi opened this issue Dec 29, 2014 · 6 comments
Closed

Test failure on rakudo star 2014.12 (Windows 7) #7

azawawi opened this issue Dec 29, 2014 · 6 comments

Comments

@azawawi
Copy link
Contributor

azawawi commented Dec 29, 2014

t/06_responsetimeout.t ............ ok
use of uninitialized value of type Any in string context  in any !cursor_init at  gen\moar\stage2\QRegex.nqp:1069


# Failed test 'Test for chunked data echo'
# at t/07_chunkedrequestecho.t line 33
# Looks like you failed 1 tests of 1
t/07_chunkedrequestecho.t .........
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
t/08_keepalive.t .................. ok
Test Summary Report
-------------------
t/07_chunkedrequestecho.t       (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=8, Tests=26, 37 wallclock secs ( 0.01 usr +  0.05 sys =  0.06 CPU)
Result: FAIL
test stage failed for HTTP::Server::Async: Tests failed
  in method install at C:\rakudo/languages/perl6/lib/Panda.pm:124
  in block  at C:\rakudo/languages/perl6/lib/Panda.pm:1
  in method resolve at C:\rakudo/languages/perl6/lib/Panda.pm:183
  in sub MAIN at C:\rakudo\bin\\panda:20
  in sub MAIN at C:\rakudo\bin\\panda:18
  in block <unit> at C:\rakudo\bin\\panda:69

@tony-o
Copy link
Collaborator

tony-o commented Dec 30, 2014

Can you run the prove with a perl6 flag '--ll-exception'

I can't seem to duplicate this

On Mon, Dec 29, 2014 at 2:51 AM, Ahmad M. Zawawi notifications@github.com
wrote:

t/06_responsetimeout.t ............ ok

use of uninitialized value of type Any in string context in any !cursor_init at gen\moar\stage2\QRegex.nqp:1069

Failed test 'Test for chunked data echo'

at t/07_chunkedrequestecho.t line 33

Looks like you failed 1 tests of 1

t/07_chunkedrequestecho.t .........
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
t/08_keepalive.t .................. ok

Test Summary Report

t/07_chunkedrequestecho.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=8, Tests=26, 37 wallclock secs ( 0.01 usr + 0.05 sys = 0.06 CPU)
Result: FAIL
test stage failed for HTTP::Server::Async: Tests failed
in method install at C:\rakudo/languages/perl6/lib/Panda.pm:124
in block at C:\rakudo/languages/perl6/lib/Panda.pm:1
in method resolve at C:\rakudo/languages/perl6/lib/Panda.pm:183
in sub MAIN at C:\rakudo\bin\panda:20
in sub MAIN at C:\rakudo\bin\panda:18
in block at C:\rakudo\bin\panda:69


Reply to this email directly or view it on GitHub
#7.

@azawawi
Copy link
Contributor Author

azawawi commented Jan 5, 2015

Sorry for the long delay. I am back from the holiday 👍

C:\perl6-http-server-async>prove -e "perl6 --ll-exception" -lrv t/ >build.log 2>&1

t/01_request.t .................... 
1..11
ok 1 - The object is-a 'HTTP::Server::Async'
ok 2 - Response stack contains no elements yet
ok 3 - Response stack contains elements
ok 4 - The object is-a 'Sub'
ok 5 - The object is-a 'IO::Socket::INET'
ok 6 - IO::Socket::INET correct host
ok 7 - IO::Socket::INET correct port
ok 8 - HTTP Status Code: 200
ok 9 - Content-Type
ok 10 - Content-Length
ok 11 - Content: Hello World!
ok
t/02_plugins.t .................... 
1..2
ok 1 - Testing for XYZ Middleware Header
ok 2 - Testing for 1420448583
ok
t/03_statuscode.t ................. 
1..1
ok 1 - HTTP Status Code: 404
ok
t/04_unbuffered_laggy_response.t .. 
1..3
ok 1 - chunk 1
ok 2 - chunk 2
ok 3 - Time lag (5)
ok
t/05_laggyrequest.t ............... 
1..1
ok 1 - Response
ok
t/06_responsetimeout.t ............ 
1..1
ok 1 - Shouldn't see "Done"
ok
use of uninitialized value of type Any in string context  in any !cursor_init at gen\moar\stage2\QRegex.nqp:1069


# Failed test 'Test for chunked data echo'
# at t/07_chunkedrequestecho.t line 33
# Looks like you failed 1 tests of 1
t/07_chunkedrequestecho.t ......... 
1..1
not ok 1 - Test for chunked data echo
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 
t/08_keepalive.t .................. 
1..6
ok 1 - Testing for pipelined response #1
ok 2 - Testing #1 for *only* #1
ok 3 - Testing #1 for *only* #1
ok 4 - Testing for pipelined response #2
ok 5 - Testing #2 for *only* #2
ok 6 - Testing #2 for *only* #2
ok

Test Summary Report
-------------------
t/07_chunkedrequestecho.t       (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=8, Tests=26, 36 wallclock secs ( 0.05 usr +  0.00 sys =  0.05 CPU)
Result: FAIL

@azawawi
Copy link
Contributor Author

azawawi commented Jan 5, 2015

I have traced it to line 25 of t/07_chunkedrequestecho.t. The sleep on windows seems to break something in recv.

If i set it to sleep 0 or comment it out, it works perfectly.

@azawawi
Copy link
Contributor Author

azawawi commented Feb 2, 2015

Any update on this one?

@tony-o
Copy link
Collaborator

tony-o commented Feb 2, 2015

Not yet, it's a problem with the test but I don't want to put a workaround
in the test because rakudo star is broken on Windows. Any suggestions on
an alternative to sleep that works on Windows?

On Mon, Feb 2, 2015 at 1:28 AM, Ahmad M. Zawawi notifications@github.com
wrote:

Any update on this one?


Reply to this email directly or view it on GitHub
#7 (comment)
.

@tony-o
Copy link
Collaborator

tony-o commented Sep 2, 2015

This should be resolved. It's passing tests now according to testers, can you confirm it works on windows?

@tony-o tony-o closed this as completed Dec 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants