Commit 01bbc3e3 authored by Johannes Schriewer's avatar Johannes Schriewer

Bugfix: Use another group for chgrp test on Linux

parent bfd69ee6
Pipeline #1719 failed with stage
......@@ -183,7 +183,11 @@ class FSTests: XCTestCase {
try FS.touchItem(path: p)
XCTAssert(FS.fileExists(path: p) == true)
let gid = try FS.getGroup(path: p)
let everyone = try FS.resolveGroup(name: "everyone")
#if os(Linux)
let everyone = try FS.resolveGroup(name: "nobody")
#else
let everyone = try FS.resolveGroup(name: "everyone")
#endif
XCTAssertNotNil(everyone)
try FS.setGroup(path: p, newGroup: everyone!)
let newGroup = try FS.getGroup(path: p)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment