Commit Graph
20 Commits
Author SHA1 Message Date
3026d0d159 mkfifo: error when non-file permission mode set (#10372)
---------

Co-authored-by: Chris Dryden <christopher.paul.dryden@gmail.com>
2026-01-21 08:05:31 +01:00
00f77cc708 mkfifo: do not change permission when failed to create (#10376)
* mkfifo: do not change permission when failed to create

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2026-01-20 18:09:01 -08:00
Mahdi Ali-RaihanandGitHub 345f2ccd14 tests/mkfifo: added a test to check mkfifo permission denied error for code coverage (#9586)
* tests/mkfifo: added a test to check mkfifo permission denied error for code coverage

* fixed formatting
2025-12-07 13:05:45 +01:00
Martin Kunkel 63dbffa7f3 Add tests for multiple mode specifications 2025-12-06 15:08:13 +00:00
yuankunzhang 5825e5e346 mkfifo: support symbolic mode 2025-08-06 22:19:01 +08:00
Sylvestre Ledru 6e930966fb selinux: introduce get_getfattr_output to verify the output of getfatt 2025-07-31 17:45:34 +02:00
Yuri AstrakhanandDaniel Hofstetter 206281e29b chore: fix uninlined_format_args lint
I used this command, plus some manual fixes:

```sh
__CARGO_FIX_YOLO=1 cargo clippy --fix --all-targets --workspace --all-features --allow-dirty
```
2025-07-09 10:50:36 +02:00
Sylvestre Ledru 595f56a9e7 set_selinux_security_context: match GNU's error 2025-05-01 14:10:13 +02:00
Sylvestre LedruandDaniel Hofstetter 8298173554 mkfifo: implement selinux support
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

merge
2025-04-24 21:54:12 +02:00
Sylvestre Ledru a0179ea239 uutests: adjust the tests to use them 2025-03-28 21:40:31 +01:00
Sylvestre Ledru 18cb7dcf9e Use the new function fails_with_code
Done with
```
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.no_stdout\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2)\n\1.no_stdout();/gs' *rs
$ sed -i -e "s|.fails()(.*).code_is(|.fails_with_code(|g" *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2);/gs' *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)(.*?)[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\3)\2;/gs' *rs
...
```
2025-03-01 17:26:20 +01:00
Sylvestre Ledru 31ffc3a0eb mkfifo: better handle the mode + umask
Should make tests/misc/mknod.sh pass
2024-12-20 18:17:52 +01:00
Sylvestre Ledru bfca6bf70f Add license headers on all files 2023-08-21 10:49:27 +02:00
Daniel Hofstetter 6988eb7ec6 tests: expand wildcard imports 2023-03-20 15:32:35 +01:00
Joining7943 1fadeb43b2 tests/util: Do not trim stderr in CmdResult::stderr_is. Add method stderr_trimmed_is.
Fix tests assert whitespace instead of trimming it. Disable some tests in `test_tr` because `tr`
produces too many newlines.
2023-01-22 14:56:19 +01:00
Terts Diepraam 9177cb7b24 all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
Yağız can Değirmenci 071899d24d tests: delete 'error:' prefix from the tests 2021-05-26 02:45:53 +03:00
Jan Scheer 646c6cacbc refactor tests (#1982) 2021-04-23 02:28:46 +02:00
Yagiz DegirmenciandGitHub f66a188414 mkfifo: general refactor, move to clap, add tests (#1945)
* mkfifo: general refactor, move to clap, add unimplemented flags

* chore: update Cargo.lock

* chore: delete unused variables, simplify multiple lines with crash

* test: add tests

* chore: revert the use of crash

* test: use even more invalid mod mode
2021-03-27 20:00:59 +01:00
Roy Ivy III 1b3bb56e66 tests ~ add missing test_UTIL module files (with 'ToDO' comments)
- common_core utils
- additional 'windows' utils
- additional 'unix' utils
2020-06-02 11:25:09 -05:00