Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tests: Fix Bash 3 compatibility | Tavian Barnes | 2023-10-23 | 1 | -4/+2 |
| | |||||
* | tests: Use test-specific scratch directories | Tavian Barnes | 2023-10-22 | 16 | -59/+54 |
| | |||||
* | tests: Refactor implementation into separate files | Tavian Barnes | 2023-10-19 | 1 | -1/+0 |
| | |||||
* | tests: New defer function | Tavian Barnes | 2023-10-19 | 4 | -4/+4 |
| | |||||
* | bfstd: Fix an OOB string index in xmbrtowc() | Tavian Barnes | 2023-09-06 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | | | This bug could be reproduced with something like $ bfs -samefile $'\xFA\xFA' bfs: error: bfs: dstrnescat@src/dstring.c:252: wordesc() result truncated or worse, with -DNDEBUG, $ bfs -samefile $'.....................\xFA\xFA' bfs: error: bfs -samefile $'.....................\xFA\xFA\x00\x55\x53\x45\x52\x3D\x74\x61\x76\x69\x61\x6E\x61\x74\x6F\x72 bfs: error: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bfs: error: No such file or directory. which prints the memory after the end of the string (in this case, the environment variable USER=tavianator). The bug was caused by the line `*i += len`, which was intended to be `*i = len`. But actually, the right behaviour seems to be `*i += 1`. Fixes: 19c96abe0a1ee56cf206fd5e87defb1fd3e0daa5 | ||||
* | tests: Use bfs_sudo wrapper instead of testing $SUDO | Tavian Barnes | 2022-12-29 | 4 | -12/+8 |
| | |||||
* | tests: Fail early in bfs_diff if the diff fails | Tavian Barnes | 2022-12-16 | 1 | -1/+1 |
| | | | | Otherwise, propagate the exit code from bfs | ||||
* | tests: Turn on set -e | Tavian Barnes | 2022-12-16 | 5 | -20/+13 |
| | |||||
* | tests: Move crash detection into invoke_bfs, use ! instead of fail | Tavian Barnes | 2022-12-16 | 2 | -2/+2 |
| | |||||
* | tests: Replace skip_unless test with test || skip | Tavian Barnes | 2022-12-16 | 8 | -12/+12 |
| | |||||
* | tests/xtouch: New utility | Tavian Barnes | 2022-11-07 | 5 | -5/+5 |
| | | | | | | POSIX touch(1) doesn't include the -h option, and indeed OpenBSD doesn't implement it. Making our own utility also lets us add some handy extensions like -p (create parents) and -M (set permissions). | ||||
* | tests: Always clean scratch before using it | Tavian Barnes | 2022-10-20 | 2 | -0/+2 |
| | |||||
* | tests: Add a helper for cleaning scratch | Tavian Barnes | 2022-10-20 | 7 | -7/+7 |
| | | | | And try to unmount things if the a test left them mounted. | ||||
* | tests: Coverage number go up | Tavian Barnes | 2022-10-19 | 2 | -0/+2 |
| | |||||
* | tests: Split test cases into separate files | Tavian Barnes | 2022-10-19 | 122 | -0/+433 |