Skip Menu |

This queue is for tickets about the Expect CPAN distribution.

Report information
The Basics
Id: 98890
Status: open
Priority: 0/
Queue: Expect

People
Owner: Nobody in particular
Requestors: HMBRAND [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.31
Fixed in: (no value)



Subject: t/02_bc is *NOT* compatible
Not all unixes are Linux, not all bc is the one shipped on Linux: The bc tests fail on ALL HP-UX fro 10.20 to 11.31 on both Itanium and PA_RISC) $ perl Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Expect Writing MYMETA.yml and MYMETA.json $ make test : Test Summary Report ------------------- t/02-bc.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 Files=6, Tests=99, 81 wallclock secs ( 0.17 usr 0.04 sys + 1.62 cusr 0.63 csys = 2.46 CPU) Result: FAIL Failed 1/6 test programs. 2/99 subtests failed. $ prove -vwb t/02-bc.t t/02-bc.t .. 1..2 /usr/bin/bc: illegal option -- v # Subtest: raw_pty_bc 1..3 # --------- bc version on hpux # # --------- not ok 1 - warranty found # Failed test 'warranty found' # at t/02-bc.t line 47. # not ok 1 - raw_pty_bc # Subtest: pty_bc 1..6 # Looks like you planned 3 tests but ran 1. # Looks like you failed 1 test of 1 run. # Failed test 'raw_pty_bc' # at t/02-bc.t line 61. not ok 1 - warranty found # Failed test 'warranty found' # at t/02-bc.t line 74. # not ok 2 - pty_bc # Looks like you planned 6 tests but ran 1. # Looks like you failed 1 test of 1 run. # Failed test 'pty_bc' # at t/02-bc.t line 97. # Looks like you failed 2 tests of 2. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/2 subtests Test Summary Report ------------------- t/02-bc.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 Files=1, Tests=2, 3 wallclock secs ( 0.08 usr 0.01 sys + 0.18 cusr 0.07 csys = 0.34 CPU) Result: FAIL
Subject: Re: [rt.cpan.org #98890] t/02_bc is *NOT* compatible
Date: Mon, 15 Sep 2014 10:25:06 +0300
To: bug-Expect [...] rt.cpan.org
From: Gabor Szabo <SZABGAB [...] cpan.org>
Show quoted text
> > Not all unixes are Linux, not all bc is the one shipped on Linux: > The bc tests fail on ALL HP-UX fro 10.20 to 11.31 on both Itanium and > PA_RISC) > >
Indeed, and even the same Linux machine can provide different results. If you can please send a report to the CPAN testers, if you cannot, please send me what is the $Config{osname} for HPUX so I can adjust the test. thanks for reporting. Gabor
Subject: Re: [rt.cpan.org #98890] t/02_bc is *NOT* compatible
Date: Mon, 15 Sep 2014 09:31:25 +0200
To: bug-Expect [...] rt.cpan.org
From: "H.Merijn Brand" <h.m.brand [...] xs4all.nl>
On Mon, 15 Sep 2014 03:25:17 -0400, "Gabor Szabo via RT" <bug-Expect@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=98890 > >
> > > > Not all unixes are Linux, not all bc is the one shipped on Linux: > > The bc tests fail on ALL HP-UX fro 10.20 to 11.31 on both Itanium and > > PA_RISC)
> > Indeed, and even the same Linux machine can provide different results. > > If you can please send a report to the CPAN testers, if you cannot, please > send me what is the $Config{osname} for HPUX so I can adjust the test.
That is a request I have always asked from the reporting people: be able to run a single ad-hoc test and send the report. That is not (yet) possible :( :( The $^O is already in your output: # --------- bc version on hpux $ perl -V:^os.* osname='hpux'; osvers='11.23'; $ perl -E'say $^O' hpux $ bc -v bc: illegal option -- v NAME bc - arbitrary-precision arithmetic language SYNOPSIS bc [-c] [-l] [file ...] DESCRIPTION bc is an interactive processor for a language that resembles C but provides unlimited-precision arithmetic. It takes input from any files given, then reads the standard input. Options: bc recognizes the following command-line options: -c Compile only. bc is actually a preprocessor for dc which bc invokes automatically (see dc(1)). Specifying -c prevents invoking dc, and sends the dc input to standard output. -l causes an arbitrary-precision math library to be predefined. As a side effect, the scale factor is set. Program Syntax: L a single letter in the range a through z; E expression; S statement; R relational expression. Comments: Comments are enclosed in /* and */. Names: Names include: simple variables: L array elements: L [ E ] The words ibase,obase, and scale stacks: L -- H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/ using perl5.00307 .. 5.19 porting perl5 on HP-UX, AIX, and openSUSE http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/ http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/
Download (untitled)
application/pgp-signature 490b

Message body not shown because it is not plain text.

From: zakame [...] zakame.net
Hi, Just chiming in to say I have the same issue on my Slackware Linux system (albeit failing on a different subtest,) so it is not just a platform issue: ---- [zakame@yorozuya:~] 1 % cpanm -v Expect cpanm (App::cpanminus) 1.7009 on perl 5.014002 built for x86_64-linux Work directory is /home/zakame/.cpanm/work/1410916951.22509 You have make /usr/bin/make You have LWP 6.08 You have /usr/bin/tar: tar (GNU tar) 1.26 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. You have /usr/bin/unzip [...] t/02-bc.t ......... # --------- bc version on linux # bc 1.06.95 # Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc. # --------- t/02-bc.t ......... 1/2 # Failed test 'the number' # at t/02-bc.t line 92. # got: '23' # expected: '30' # Failed test 'after' # at t/02-bc.t line 95. # '+7 # ' # doesn't match '(?^:^[\r\n]*$)' # Looks like you failed 2 tests of 6. t/02-bc.t ......... 2/2 # Failed test 'pty_bc' # at t/02-bc.t line 97. # Looks like you failed 1 test of 2. t/02-bc.t ......... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests [...] You probably want to generalize this test into one for raw versus sub ptys (though I think you already do that in 01-test.t) Cheers, Zakame ---- On Mon Sep 15 03:31:47 2014, h.m.brand@xs4all.nl wrote: Show quoted text
> On Mon, 15 Sep 2014 03:25:17 -0400, "Gabor Szabo via RT" > <bug-Expect@rt.cpan.org> wrote: >
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=98890 > > >
> > > > > > Not all unixes are Linux, not all bc is the one shipped on Linux: > > > The bc tests fail on ALL HP-UX fro 10.20 to 11.31 on both Itanium and > > > PA_RISC)
> > > > Indeed, and even the same Linux machine can provide different results. > > > > If you can please send a report to the CPAN testers, if you cannot, please > > send me what is the $Config{osname} for HPUX so I can adjust the test.
> > That is a request I have always asked from the reporting people: be > able to run a single ad-hoc test and send the report. That is not (yet) > possible :( :( > > The $^O is already in your output: > > # --------- bc version on hpux > > $ perl -V:^os.* > osname='hpux'; > osvers='11.23'; > $ perl -E'say $^O' > hpux > > > $ bc -v > bc: illegal option -- v > > NAME > bc - arbitrary-precision arithmetic language > > SYNOPSIS > bc [-c] [-l] [file ...] > > DESCRIPTION > bc is an interactive processor for a language that resembles C but > provides unlimited-precision arithmetic. It takes input from any > files given, then reads the standard input. > > Options: > bc recognizes the following command-line options: > > -c Compile only. bc is actually a preprocessor for dc > which bc invokes automatically (see dc(1)). Specifying > -c prevents invoking dc, and sends the dc input to > standard output. > > -l causes an arbitrary-precision math library to be > predefined. As a side effect, the scale factor is set. > > Program Syntax: > L a single letter in the range a through z; > E expression; > S statement; > R relational expression. > > Comments: > Comments are enclosed in /* and */. > > Names: > Names include: > > simple variables: L > array elements: L [ E ] > The words ibase,obase, and scale > stacks: L > >
From: raherh [...] gmail.com
On Tue Sep 16 21:33:01 2014, zakame@zakame.net wrote: Show quoted text
> t/02-bc.t ......... # --------- bc version on linux > # bc 1.06.95 > # Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software > Foundation, Inc. > # --------- > t/02-bc.t ......... 1/2 > # Failed test 'the number' > # at t/02-bc.t line 92. > # got: '23' > # expected: '30' > > # Failed test 'after' > # at t/02-bc.t line 95. > # '+7 > # ' > # doesn't match '(?^:^[\r\n]*$)' > # Looks like you failed 2 tests of 6. > t/02-bc.t ......... 2/2 > # Failed test 'pty_bc' > # at t/02-bc.t line 97. > # Looks like you failed 1 test of 2. > t/02-bc.t ......... Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/2 subtests
On RedHat it also fails in a similar way: # Failed test 'the number' # at t/02-bc.t line 59. # got: '1034' # expected: '30' t/02-bc.t ......... 1/2 # Looks like you failed 1 test of 3. # Failed test 'raw_pty_bc' # at t/02-bc.t line 61. # Looks like you failed 1 test of 2. t/02-bc.t ......... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests Radek
Subject: Re: [rt.cpan.org #98890] t/02_bc is *NOT* compatible
Date: Sun, 19 Oct 2014 02:22:56 -0400
To: bug-Expect [...] rt.cpan.org
From: "Daniel Macks" <dmacks [...] netspace.org>
Same results as zakame, but I'm on OS X 10.8 (apple-supplied perl-5.12.4, apple-supplied bc-1.06). Only difference is a slightly different report of the bc version: t/02-bc.t ......... # --------- bc version on darwin # bc 1.06 # Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. t/02-bc.t seems to have some special logic for darwin platforms (both $^O and $Config{osname} are indeed "darwin"), so either the wrong special-case is being used there or the test is getting subverted somehow. dan -- Daniel Macks dmacks@netspace.org