summaryrefslogtreecommitdiffstats
path: root/make/scripts
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-01-16 02:56:32 +0100
committerSven Gothel <[email protected]>2023-01-16 02:56:32 +0100
commit4b31fa321bdf02ce87648dcb7c0034b297a9e71f (patch)
tree26d835c59d2aaa1f97e6cd7019223bad8d458b18 /make/scripts
parent654a3a9bb82c20b03a5286a7d9ac84c3a38923d4 (diff)
SWT tests on MacOS (w/o AWT) require '-XstartOnFirstThread' JVM argument, else they crash.
Diffstat (limited to 'make/scripts')
-rw-r--r--make/scripts/tests.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/make/scripts/tests.sh b/make/scripts/tests.sh
index 714a79776..41748eebd 100644
--- a/make/scripts/tests.sh
+++ b/make/scripts/tests.sh
@@ -375,6 +375,9 @@ function jrun() {
export USE_CLASSPATH=$JOGAMP_ALL_AWT_CLASSPATH
echo USE_CLASSPATH $USE_CLASSPATH
X_ARGS="-Djava.awt.headless=true $X_ARGS"
+ if [ $MOSX -eq 1 ] ; then
+ X_ARGS="-XstartOnFirstThread $X_ARGS"
+ fi
elif [ $awton -eq -1 ] ; then
export USE_CLASSPATH=$JOGAMP_ATOMICS_NOAWT_CLASSPATH
else