OpenGrok
Cross Reference: t_glob.c
xref
: /
src
/
tests
/
lib
/
libc
/
gen
/
t_glob.c
Home
|
History
|
Annotate
|
Download
|
only in
gen
History log of
/src/tests/lib/libc/gen/t_glob.c
Revision
Date
Author
Comments
1.10
13-Mar-2020
rillig
t_glob.c: clean up test code
In struct vfs_file, using an int as a boolean is an anachronism and has
been replaced with a single-character file type, like in ls(1).
Some other redundant test code has been removed as well since it was
either unreachable or existed only for performance reasons.
1.9
13-Mar-2020
rillig
t_glob.c: add test cases for hidden directory and file
The existing test code was geared towards every little bit of
performance. It even duplicated the file definitions in vfs_stat in order
to avoid a few strcmp calls. This made the test code fragile. Therefore,
vfs_stat has been rewritten completely to not duplicate any information
from the vfs.
In vfs_stat, the returned st_mode is now more realistic. It had been 0
before. The file mode is only logged when it makes sense. In the ENOENT
case it is not logged anymore.
The debug logging for opendir/closedir now logs the same pointer, so that
the corresponding calls can be matched easily. Failed vfs_opendir calls
are logged as well, to get a more complete picture of which callbacks are
called.
1.8
13-Mar-2020
rillig
t_glob.c: use distinct names for test structures
Before, the structures and functions defined by the test used the same
prefix as the code to be tested. This made it difficult to draw a line
between these parts.
1.7
13-Mar-2020
rillig
t_glob.c: move expected globbing result directly into the test cases
This makes the tests more self-contained. The example directory tree that
is common to all the tests is still defined elsewhere, but in the same
file. Setting up the example directory structure in each test would make
the tests even more independent and read.
1.6
26-Apr-2017
christos
branches: 1.6.10;
- add range tests
- be more descriptive about errors
1.5
14-Jan-2017
christos
branches: 1.5.4;
PR/51825: Ngie Cooper: use the non _ version of the macro
1.4
13-Jan-2017
christos
Don't play with "../.." in includes for h_macros.h; deal with it centrally.
Minor fixes.
1.3
02-Jan-2013
martin
branches: 1.3.12;
Remove check for GLOB_NOCHECK - the behaviour has been changed again, so it
will return a modified pattern.
1.2
18-Dec-2012
christos
- make our stat function return ENOENT if a file is not found.
- add a GLOB_NOMATCH check
1.1
07-Jul-2011
jruoho
branches: 1.1.2; 1.1.8;
Move 't_glob_star' to 't_glob' for glob(3).
1.1.8.1
25-Feb-2013
tls
resync with head
1.1.2.1
23-Jan-2013
yamt
sync with head
1.3.12.1
20-Mar-2017
pgoyette
Sync with HEAD
1.5.4.1
02-May-2017
pgoyette
Sync with HEAD - tag prg-localcount2-base1
1.6.10.1
08-Apr-2020
martin
Merge changes from current as of 20200406
Indexes created Thu Oct 02 07:10:07 GMT 2025