Test suite results for test file test/units/dos/tfsearch.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 "test/units/dos/tfsearch.pp" information:

t_id 1202
t_adddate 2003/11/17
t_result 0
t_knownrunerror 0

Detailed test run results:

Record count: 50

Total = 50

OK=50 Percentage= 100.00

Result type Cat. Count Percentage First date Last Date
Successfully run 50 100.0 2024/05/20 17:12:00 45 2024/05/20 23:59:00 16
i386 18 36.0 2024/05/20 17:12:00 45 2024/05/20 23:54:00 24
m68k 1 2.0 2024/05/20 22:44:00 190 2024/05/20 22:44:00 190
sparc 17 34.0 2024/05/20 23:25:00 38 2024/05/20 23:52:00 41
powerpc 1 2.0 2024/05/20 23:05:00 185 2024/05/20 23:05:00 185
arm 1 2.0 2024/05/20 22:30:00 59 2024/05/20 22:30:00 59
x86_64 5 10.0 2024/05/20 17:51:00 26 2024/05/20 23:59:00 16
powerpc64 2 4.0 2024/05/20 23:13:00 213 2024/05/20 23:20:00 71
mips 1 2.0 2024/05/20 22:51:00 240 2024/05/20 22:51:00 240
mipsel 1 2.0 2024/05/20 22:58:00 148 2024/05/20 22:58:00 148
aarch64 2 4.0 2024/05/20 17:40:00 34 2024/05/20 22:24:00 44
sparc64 1 2.0 2024/05/20 23:47:00 148 2024/05/20 23:47:00 148
linux 16 32.0 2024/05/20 22:24:00 44 2024/05/20 23:59:00 16
win32 1 2.0 2024/05/20 23:41:00 23 2024/05/20 23:41:00 23
solaris 29 58.0 2024/05/20 17:12:00 45 2024/05/20 23:52:00 41
darwin 1 2.0 2024/05/20 17:40:00 34 2024/05/20 17:40:00 34
win64 3 6.0 2024/05/20 17:51:00 26 2024/05/20 19:35:00 26
3.3.1 25 50.0 2024/05/20 17:51:00 26 2024/05/20 23:59:00 16
3.2.2 1 2.0 2024/05/20 17:12:00 45 2024/05/20 17:12:00 45
3.2.3 24 48.0 2024/05/20 17:40:00 34 2024/05/20 23:54:00 24

Source:

{
  $Id: tfsearch.pp,v 1.1 2003/11/16 17:27:20 hajny Exp $
    This file is part of the Free Pascal test suite.
    Copyright (c) 1999-2003 by the Free Pascal development team.

    Test for possible bugs in Dos.FSearch

    See the file COPYING.FPC, included in this distribution,
    for details about the copyright.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 **********************************************************************}

program TFSearch;

uses
 Dos;

var
 S: string;
 F: file;
 Err: boolean;

const
 TestDir: string = 'TESTDIR';
 TestFile: string = 'testfile';

begin
 Err := false;
 MkDir (TestDir);
 S := FSearch (TestDir, '');
 if S <> '' then
 begin
  WriteLn ('FSearch should only find files, not directories!!');
  WriteLn ('Returned value = ', S);
  Err := true;
 end;
 Assign (F, TestDir + DirectorySeparator + TestFile);
 Rewrite (F);
 Close (F);
 S := FSearch (TestFile, TestDir);
 if S <> TestDir + DirectorySeparator + TestFile then
 begin
  WriteLn ('FSearch didn''t find the test file!!');
  WriteLn ('Returned value = ', S);
  Err := true;
 end;
 Erase (F);
 RmDir (TestDir);
 if Err then Halt (1);
end.

{
  $Log: tfsearch.pp,v $
  Revision 1.1  2003/11/16 17:27:20  hajny
    + test for FSearch added


}

Link to SVN view of test/units/dos/tfsearch.pp source.