Test suite results for test file webtbs/tw0966.pp

Test run data :

Free Pascal Compiler Test Suite Results

View Test suite results

Please specify search criteria:
File:
Operating system:
Processor:
Version
Date
Submitter
Machine
Comment
Limit
Cond
Category
Only failed tests
Hide skipped tests
List all tests

Test file "webtbs/tw0966.pp" information:

t_id 746
t_adddate 2003/10/03
Flag t_interactive set
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=0 Percentage= 0.00

Skipped=50 Percentage= 100.00

Result type Cat. Count Percentage First date Last Date
Skipping test because it is interactive 50 100.0 2024/06/02 01:36:00 47 2024/06/02 06:26:00 40
i386 7 14.0 2024/06/02 01:36:00 47 2024/06/02 05:39:00 44
m68k 2 4.0 2024/06/02 03:55:00 53 2024/06/02 05:48:00 63
sparc 5 10.0 2024/06/02 03:07:00 41 2024/06/02 05:32:00 44
powerpc 1 2.0 2024/06/02 04:10:00 238 2024/06/02 04:10:00 238
arm 1 2.0 2024/06/02 05:51:00 67 2024/06/02 05:51:00 67
x86_64 20 40.0 2024/06/02 01:57:00 22 2024/06/02 06:26:00 40
powerpc64 4 8.0 2024/06/02 04:15:00 53 2024/06/02 04:32:00 57
mips 1 2.0 2024/06/02 04:00:00 47 2024/06/02 04:00:00 47
mipsel 1 2.0 2024/06/02 04:06:00 185 2024/06/02 04:06:00 185
aarch64 6 12.0 2024/06/02 01:46:00 39 2024/06/02 05:49:00 25
sparc64 1 2.0 2024/06/02 05:03:00 157 2024/06/02 05:03:00 157
riscv64 1 2.0 2024/06/02 04:39:00 31 2024/06/02 04:39:00 31
linux 39 78.0 2024/06/02 01:36:00 47 2024/06/02 05:51:00 67
go32v2 2 4.0 2024/06/02 04:24:00 56 2024/06/02 05:03:00 55
solaris 7 14.0 2024/06/02 03:07:00 41 2024/06/02 06:26:00 40
darwin 2 4.0 2024/06/02 05:42:00 24 2024/06/02 05:49:00 25
3.3.1 23 46.0 2024/06/02 01:46:00 39 2024/06/02 06:26:00 40
3.2.3 27 54.0 2024/06/02 01:36:00 47 2024/06/02 05:51:00 67

Source:

{ %INTERACTIVE }
{ %TARGET=win32,linux }

{ Source provided for Free Pascal Bug Report 966 }
{$i-}
uses
{$ifdef Unix}
  linux,
{$else}
  crt,
{$endif}
  Sockets;
Var
 S : Longint ; Sin,Sout: Text;
 Temp, Temp2 : Char;
 i : longint;

const
 isocket: TInetSockAddr= (
    Family:AF_INET;
    Port:$1500;
    Addr:((93*256+36)*256+161)*256+130);
    {*** ftp 130.161.36.93 i.e. ftp.freepascal.org }
    { FIXME: it would be much better to have the number
    through a name server but I don't know how to do this ! PM }

        procedure perror(const S: string);
        begin
        writeln(S,SocketError);
        halt(100) ;
        end;

  procedure read_to_eof;
    var
      temp2 : char;
    begin
{$ifdef Unix}
      while selecttext(sin,1)>0 do
       begin
         read(Sin,Temp2);
         write(Temp2);
       end;
{$else}
      repeat until not eof(sin);
      while not eof(sin) do
        begin
          read(Sin,Temp2);
          write(Temp2);
          delay(1);
        end;
{$endif}
    end;

begin
  S:=Socket(AF_INET,SOCK_STREAM,0);
  if SocketError<>0 then Perror('Client : Socket : ');
  WriteLn('*1');
  if not Connect(s,isocket,sin,sout)then Perror('Client : Socket : ');
  WriteLn('*2');
  ReWrite(Sout); Reset(Sin);
  WriteLn('*3');
  read_to_eof;
  Writeln('Sending "USER anonymous#10"');
  Write(Sout,'USER anonymous'#10);
  read_to_eof;
  Writeln('Sending "PASS core@freepascal.org#10"');
  Write(Sout,'PASS core@freepascal.org'#10);
  read_to_eof;
  Writeln('Sending "QUIT#10"');
  Write(Sout,'QUIT'#10);
  read_to_eof;
  shutdown(s,2); close(sin); close(sout);
end.

Link to SVN view of webtbs/tw0966.pp source.