From df9b3523ef87f225b0fb7491d9dbfa74733660b4 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Fri, 16 Feb 2018 09:41:42 +0100 Subject: [PATCH] Try fork test on Cygwin and Linux only seems to hang on at least ARMv8/Android as well --- utest/CMakeLists.txt | 9 +++------ utest/Makefile | 8 +++----- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/utest/CMakeLists.txt b/utest/CMakeLists.txt index c179c7bcb..ced39f812 100644 --- a/utest/CMakeLists.txt +++ b/utest/CMakeLists.txt @@ -16,13 +16,10 @@ else () ) endif () +# known to hang with the native Windows and Android threads +# FIXME needs checking if this works on any of the other platforms if (NOT USE_OPENMP) -if (NOT OS_WINDOWS) -set(OpenBLAS_utest_src - ${OpenBLAS_utest_src} - test_fork.c - ) -elseif (OS_CYGWIN_NT) +if (OS_CYGWIN_NT OR OS_LINUX) set(OpenBLAS_utest_src ${OpenBLAS_utest_src} test_fork.c diff --git a/utest/Makefile b/utest/Makefile index 1b43fd303..573e412f8 100644 --- a/utest/Makefile +++ b/utest/Makefile @@ -15,13 +15,11 @@ ifneq ($(NO_LAPACK), 1) #OBJS += test_potrs.o endif +#this does not work with OpenMP nor with native Windows or Android threads +# FIXME TBD if this works on OSX, SunOS, POWER and zarch ifndef USE_OPENMP -ifndef OS_WINDOWS +ifeq ($(OSNAME), $(filter $(OSNAME),Linux CYGWIN_NT)) OBJS += test_fork.o -else -ifdef OS_CYGWIN_NT -OBJS += test_fork.o -endif endif endif