Skip to content

Commit

Permalink
chgrp: rename a test for something a bit more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed Jan 12, 2025
1 parent a9f39f3 commit ac402c3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/by-util/test_chgrp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn test_invalid_group() {
}

#[test]
fn test_1() {
fn test_error_1() {
if getegid() != 0 {
new_ucmd!().arg("bin").arg(DIR).fails().stderr_contains(
// linux fails with "Operation not permitted (os error 1)"
Expand Down Expand Up @@ -573,7 +573,6 @@ fn test_numeric_group_formats() {

at.touch("test_file");

// Set initial group
scene
.ucmd()
.arg(first_group.to_string())
Expand All @@ -589,7 +588,6 @@ fn test_numeric_group_formats() {
.succeeds()
.no_stderr();

// Verify the group was changed
let new_gid = at.plus("test_file").metadata().unwrap().gid();
assert_eq!(new_gid, second_group.as_raw());

Expand All @@ -602,7 +600,6 @@ fn test_numeric_group_formats() {
.succeeds()
.no_stderr();

// Verify the group was changed back
let final_gid = at.plus("test_file").metadata().unwrap().gid();
assert_eq!(final_gid, first_group.as_raw());
}

0 comments on commit ac402c3

Please sign in to comment.