mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
id: fix error handling for id_print()
This commit is contained in:
parent
7abc6a665e
commit
36a192c5f6
2 changed files with 62 additions and 18 deletions
|
@ -431,8 +431,11 @@ fn test_id_no_specified_user_posixly() {
|
|||
// gnu/tests/id/no-context.sh
|
||||
|
||||
let ts = TestScenario::new(util_name!());
|
||||
let result = ts.ucmd().env("POSIXLY_CORRECT", "1").succeeds();
|
||||
let result = ts.ucmd().env("POSIXLY_CORRECT", "1").run();
|
||||
assert!(!result.stdout_str().contains("context="));
|
||||
if !is_ci() {
|
||||
result.success();
|
||||
}
|
||||
|
||||
#[cfg(all(target_os = "linux", feature = "feat_selinux"))]
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue