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/05/08 11:24:00 238 2024/05/08 16:30:00 33
i386 9 18.0 2024/05/08 12:17:00 25 2024/05/08 15:10:00 25
m68k 2 4.0 2024/05/08 12:40:00 244 2024/05/08 12:52:00 58
sparc 4 8.0 2024/05/08 12:03:00 74 2024/05/08 13:43:00 62
powerpc 3 6.0 2024/05/08 11:24:00 238 2024/05/08 13:17:00 181
arm 2 4.0 2024/05/08 12:28:00 33 2024/05/08 12:36:00 210
x86_64 6 12.0 2024/05/08 12:06:00 41 2024/05/08 14:13:00 40
powerpc64 5 10.0 2024/05/08 11:43:00 63 2024/05/08 13:33:00 60
mips 2 4.0 2024/05/08 12:44:00 239 2024/05/08 13:01:00 154
mipsel 2 4.0 2024/05/08 12:48:00 183 2024/05/08 13:10:00 228
aarch64 7 14.0 2024/05/08 12:20:00 37 2024/05/08 16:30:00 33
sparc64 6 12.0 2024/05/08 11:58:00 155 2024/05/08 14:06:00 137
riscv64 1 2.0 2024/05/08 12:10:00 36 2024/05/08 12:10:00 36
loongarch64 1 2.0 2024/05/08 12:37:00 36 2024/05/08 12:37:00 36
linux 39 78.0 2024/05/08 11:24:00 238 2024/05/08 14:13:00 40
win32 7 14.0 2024/05/08 12:17:00 25 2024/05/08 15:10:00 25
darwin 4 8.0 2024/05/08 16:11:00 32 2024/05/08 16:30:00 33
3.3.1 30 60.0 2024/05/08 11:24:00 238 2024/05/08 15:10:00 25
3.2.3 20 40.0 2024/05/08 11:58:00 155 2024/05/08 16:30:00 33

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.