15 lines
367 B
Swift
15 lines
367 B
Swift
import Darwin
|
|
import Testing
|
|
@testable import CodexBarCore
|
|
|
|
@Suite(.serialized)
|
|
struct ShellCommandForegroundTests {
|
|
@Test
|
|
func `shell probe requests a detached session`() {
|
|
let flags = ShellCommandLocator.test_shellSpawnFlags
|
|
|
|
#expect(flags & Int16(POSIX_SPAWN_SETSID) != 0)
|
|
#expect(flags & Int16(POSIX_SPAWN_SETPGROUP) == 0)
|
|
}
|
|
}
|