From 4b31fa321bdf02ce87648dcb7c0034b297a9e71f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 16 Jan 2023 02:56:32 +0100 Subject: SWT tests on MacOS (w/o AWT) require '-XstartOnFirstThread' JVM argument, else they crash. --- make/scripts/tests.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'make/scripts') 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 -- cgit v1.2.3