We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f6c350 commit c70f3d2Copy full SHA for c70f3d2
Tests/JavaKitTests/BasicRuntimeTests.swift
@@ -16,6 +16,7 @@ import JavaKit
16
import JavaKitNetwork
17
import JavaKitVM
18
import Testing
19
+import Foundation
20
21
#if os(Linux)
22
import Glibc
@@ -94,7 +95,10 @@ var isLinux: Bool {
94
95
96
/// Whether we're running on MacOS in an interactive terminal session.
97
var isMacOSTerminal: Bool {
- isMacOS && isatty(STDOUT_FILENO) == 1
98
+ isMacOS && (
99
+ isatty(STDOUT_FILENO) == 1 ||
100
+ ProcessInfo.processInfo.environment["IS_TTY"] != nil // since 'swift test' still sometimes hides the fact we're in tty
101
+ )
102
}
103
104
/// Whether we're running on MacOS.
0 commit comments