summaryrefslogtreecommitdiff
path: root/tests/readdir-rand.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove readdir-randColin Walters2022-11-011-235/+0
| | | | | | | This was only there to reproduce a bug we hit long ago with bootloader file ordering. We're extremely unlikely to reintroduce such a bug, and it's not worth carrying around this code.
* readdir-rand: Copy full size of struct direntSimon McVittie2022-10-281-1/+28
| | | | | | | | As noted in readdir(3), in the presence of long filenames it is possible for a directory entry to be larger than `sizeof (struct dirent)`. Copy the full length instead. Signed-off-by: Simon McVittie <smcv@collabora.com>
* Update FSF license notices to use URL instead of addressJoseph Marrero2021-12-071-3/+1
|
* Add SPDX-License-Identifier to source filesMarcus Folkesson2018-01-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | SPDX License List is a list of (common) open source licenses that can be referred to by a “short identifier”. It has several advantages compared to the common "license header texts" usually found in source files. Some of the advantages: * It is precise; there is no ambiguity due to variations in license header text * It is language neutral * It is easy to machine process * It is concise * It is simple and can be used without much cost in interpreted environments like java Script, etc. * An SPDX license identifier is immutable. * It provides simple guidance for developers who want to make sure the license for their code is respected See http://spdx.org for further reading. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Closes: #1439 Approved by: cgwalters
* tree-wide: Remove Emacs modelinesColin Walters2017-09-211-2/+1
| | | | | | | | | We added a `.dir-locals.el` in commit: 9a77017d87b74c5e2895cdd64ad098018929403f There's no need to have it per-file, with that people might think to add other editors, which is the wrong direction. Closes: #1206 Approved by: jlebon
* tree-wide: Switch tabs ⭾ in various files over to spaces ␠Colin Walters2017-05-111-30/+30
| | | | | | | | | | | | As $DEITY intended. I was reading the `prepare-root.c` code and the indentation damage was distracting. Squash tabs that have leaked into various places in the code. I didn't yet touch the `src/libostree` bits as that has higher potential for conflict. Closes: #852 Approved by: jlebon
* build: Fix libreaddir-rand to honor global CFLAGSColin Walters2016-06-171-1/+1
| | | | | | | | | | | | | | It's unfortunate that in automake one has to explicitly include the globa `$(AM_CFLAGS)` if one sets `CFLAGS`, and similarly for other variables. I'm trying to use `-fsanitize=address`, and not including it was causing linker failures. We also weren't inheriting the global warnings etc., so I had to fix a decl-after-statement. Closes: #351 Approved by: jlebon
* tests, lib: Remove unused variablesKrzesimir Nowak2016-04-191-1/+0
| | | | | Closes: #267 Approved by: cgwalters
* tests: Use readdir64 when _FILE_OFFSET_BITS setDan Nicholson2015-06-041-2/+13
| | | | | | | On 32 bit systems, _FILE_OFFSET_BITS will be set to 64 by AC_SYS_LARGEFILE. This causes the glibc headers to use readdir64 rather than readdir. Emulate that behavior in the preloader or the tests will all fail with "No such file or directory".
* tests: Run all tests through a randomized readdir()Colin Walters2015-06-021-0/+199
| | | | | | | | | | | Having undefined (but in practice rarely changing) ordering for `readdir()` ended up screwing us over for bootloader config generation; see https://bugzilla.redhat.com/show_bug.cgi?id=1226520 Let's make things significantly more likely to fail more quickly in the future if similar bugs are introduced. We accomplish this by introducing a little `LD_PRELOAD` library that randomizes the results of `readdir()`.
* Revert "tests: Run all tests through a randomized readdir()"Colin Walters2015-06-021-124/+0
| | | | | | Unintentionally pushed. This reverts commit ce49264157f9005e664557613cbbf67f54174682.
* tests: Run all tests through a randomized readdir()Colin Walters2015-06-011-0/+124
Having undefined ordering (but in practice rarely changing) ordering for `readdir()` ended up screwing us over with respect to bootloader config file read ordering. Let's make things significantly more likely to fail more quickly in the future if similar bugs are introduced. We accomplish this by introducing a little `LD_PRELOAD` library that randomizes the results of `readdir()`.