You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Test("Class instance lookup",.disabled(if: isMacOSTerminal || isLinux,"JVM creation fails occasionally in terminal on macOS, and some issues on Linux"))
68
75
func classInstanceLookup()throws{
69
76
do{
70
77
_ =tryJavaClass<Nonexistent>(in: jvm.environment)
@@ -86,6 +93,14 @@ var isLinux: Bool {
86
93
#endif
87
94
}
88
95
96
+
/// Whether we're running on MacOS in an interactive terminal session.
97
+
varisMacOSTerminal:Bool{
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
0 commit comments