Files
steipete--codexbar/Tests/CodexBarTests/ShellCommandForegroundTests.swift
2026-07-13 12:22:33 +08:00

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)
}
}