Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #39928] [PATCH] [Win32] Remove Quotes for lazy-k calc.t on Windows

4 views
Skip to first unread message

Ron Blaschke

unread,
Jul 24, 2006, 5:59:20 PM7/24/06
to bugs-bi...@rt.perl.org
# New Ticket Created by Ron Blaschke
# Please include the string: [perl #39928]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=39928 >


Problem: languages/lazy-k/t/calc.t calls C<echo '1+2*3' | ../../parrot
lazy.pir calc.lazy>, and the single quotes are passed literally on
Windows, which seems unexpected by lazy-k, or at least causes additional
newlines.

>prove lazy-k/t/calc.t
lazy-k/t/calc....
# Failed test (lazy-k/t/calc.t at line 40)
# got: '
# 7
#
# '
# expected: '7
# '
# Looks like you failed 1 test of 1.
lazy-k/t/calc....dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
lazy-k/t/calc.t 1 256 1 1 100.00% 1
Failed 1/1 test scripts, 0.00% okay. 1/1 subtests failed, 0.00% okay.


Possible Solution: Probably not a very good solution, but it seems to
work. Attached patch avoids the single quotes on Windows.

>prove lazy-k/t/calc.t
lazy-k/t/calc....ok
All tests successful.
Files=1, Tests=1, 2 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU)


Changed Files:
languages/lazy-k/t/calc.t

win32_lazy_k_echo.patch
0 new messages