Subject: | Perl_sv_peek, and the failure of test |
Dear H.Merijn Brand,
My perl is ActivePerl Build 817, which doesn't have Perl_sv_peek(I think).
As such, the linking was failure. So, I copied the source of Perl_sv_peek from
dump.c into Peek.xs. Unfortunately, although its build was success, its
test was failure as follows:
C:\test\Perl\Data-Peek-0.20>nmake test
Microsoft(R) Program Maintenance Utility Version 7.00.9955
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'bl
ib\lib', 'blib\arch')" t/*.t
t/00_pod........ok
t/01_pod........ok
t/10_DDumper....ok
t/20_DPeek......ok
t/30_DDump-s....1/6
# Failed test 'DDump (undef)'
# at t/30_DDump-s.t line 54.
# got: 'SV = PV(0x****) at 0x****
# REFCNT = 1
# FLAGS = (PADMY)
# PV = 0
# '
# expected: 'SV = PV(0x****) at 0x****
# REFCNT = 1
# FLAGS = (PADMY)
# PV = 0
# '
# Failed test 'DDump (0)'
# at t/30_DDump-s.t line 54.
# got: 'SV = PVIV(0x****) at 0x****
# REFCNT = 1
# FLAGS = (PADMY,IOK,pIOK)
# IV = 0
# PV = 0
# '
# expected: 'SV = PVIV(0x****) at 0x****
# REFCNT = 1
# FLAGS = (PADMY,IOK,pIOK)
# IV = 0
# PV = 0
# '
# Failed test 'DDump (1)'
# at t/30_DDump-s.t line 54.
# got: 'SV = PVIV(0x****) at 0x****
# REFCNT = 1
# FLAGS = (PADMY,IOK,pIOK)
# IV = 1
# PV = 0
# '
# expected: 'SV = PVIV(0x****) at 0x****
# REFCNT = 1
# FLAGS = (PADMY,IOK,pIOK)
# IV = 1
# PV = 0
# '
# Failed test 'DDump ("")'
# at t/30_DDump-s.t line 54.
# got: 'SV = PVIV(0x****) at 0x****
# REFCNT = 1
# FLAGS = (PADMY,POK,pPOK)
# IV = 1
# PV = 0x**** ""\0
# CUR = 0
# LEN = 8
# '
# expected: 'SV = PVIV(0x****) at 0x****
# REFCNT = 1
# FLAGS = (PADMY,POK,pPOK)
# IV = 1
# PV = 0x**** ""\0
# CUR = 0
# LEN = 8
# '
# Looks like you failed 4 tests of 6.
t/30_DDump-s.... Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/6 subtests
t/31_DDump-s....ok
t/40_DDump-h....ok
t/41_DDump-h....ok
t/50_DDual......ok
Test Summary Report
-------------------
t/30_DDump-s (Wstat: 1024 Tests: 6 Failed: 4)
Failed tests: 3-6
Non-zero exit status: 4
t/50_DDual (Wstat: 0 Tests: 69 Failed: 0)
TODO passed: 8-9, 31-32, 40-41, 49-50, 58-59, 61-64
66-69
Files=9, Tests=172, 5 wallclock secs ( 0.17 usr + 0.03 sys = 0.20 CPU)
Result: FAIL
Failed 1/9 test programs. 4/172 subtests failed.
NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0xff'
Stop.
In my opinion, this would be due to the code of newline.
Best regards,
Taro Nishino