develooper Front page | perl.perl5.porters | Postings from March 2000

[ID 20000326.004] Posix test #2 failed on WinNT

Thread Next
From:
Andreas.Mahling
Date:
March 26, 2000 10:21
Subject:
[ID 20000326.004] Posix test #2 failed on WinNT
Message ID:
000501bf974e$fcbcd420$1403a8c0@yoghurt
This is a bug report for perl from ama@yoghurt,
generated with the help of perlbug 1.26 running under perl 5.00503.


-----------------------------------------------------------------
[Please enter your report here]
the Posix Test #2 failed on WinNT because of an uncomplete end-of-line read
My suggestion to fix this problem

*** posix.t.orig Sun Mar 26 19:42:48 2000
--- posix.t Sun Mar 26 19:40:38 2000
***************
*** 18,26 ****

  $Is_W32 = $^O eq 'MSWin32';

  $testfd = open("TEST", O_RDONLY, 0) and print "ok 1\n";
! read($testfd, $buffer, 9) if $testfd > 2;
  print $buffer eq "#!./perl\n" ? "ok 2\n" : "not ok 2\n";

  write(1,"ok 3\nnot ok 3\n", 5);

--- 18,26 ----

  $Is_W32 = $^O eq 'MSWin32';

  $testfd = open("TEST", O_RDONLY, 0) and print "ok 1\n";
! read($testfd, $buffer, $Is_W32 ? 10 : 9) if $testfd > 2;
  print $buffer eq "#!./perl\n" ? "ok 2\n" : "not ok 2\n";

  write(1,"ok 3\nnot ok 3\n", 5);





[Please do not change anything below this line]
-----------------------------------------------------------------

---
Site configuration information for perl 5.00503:

Summary of my perl5 (5.0 patchlevel 5 subversion 03) configuration:
  Platform:
    osname=MSWin32, osvers=4.0, archname=MSWin32-x86
    uname=''
    hint=recommended, useposix=true, d_sigaction=undef
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cl.exe', optimize='-O2 -MD -DNDEBUG', gccversion=
    cppflags='-DWIN32'
    ccflags ='-O2 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT   '
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='link', ldflags ='-nologo -nodefaultlib -release -machine:x86'
    libpth=\lib
    libs= oldnames.lib kernel32.lib user32.lib gdi32.lib  winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib  oleaut32.lib netapi32.lib
uuid.lib wsock32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib
msvcrt.lib
    libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl.lib
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ',
lddlflags='-dll -nologo -nodefaultlib -release -machine:x86'

Locally applied patches:


---
@INC for perl 5.00503:
    h:\lib\perl\lib/MSWin32-x86
    h:\lib\perl\lib
    h:\lib\perl\site\lib/MSWin32-x86
    h:\lib\perl\site\lib
    .

---
Environment for perl 5.00503:
    HOME=h:/users/ama
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)

PATH=h:/lib/mks/mksnt;h:\lib\mks\bin;h:\lib\perl\bin;H:\orant\bin;D:\NT_MAIN
\system32;D:\NT_MAIN;h:\lib\vim-5.3;h:\util\bin;h:\lib\ntreskit;h:\lib\wincv
s-1.0;d:\Progam Files\Common Files\System\Ole
Db;;E:\Programme\DeskView\System;E:\Programme\DeskView\DeskInfo;H:\lib\msvs\
common\Tools\WinNT;H:\lib\msvs\common\MSDev98\Bin;H:\lib\msvs\common\Tools;H
:\lib\msvs\VC98\bin;H:\LIB\INFORMIX\BIN;h:\lib\msvc32\BIN;h:\lib\centura;h:\
lib\informix\w32\bin;h:\lib\soka
    PERL_BADLANG (unset)
    SHELL=h:/lib/mks/bin/sh.exe



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About