science/gnudatalanguage: fix testsuite

No need to bump PORTREVISION.
This commit is contained in:
Thierry Thomas
2025-12-19 16:01:28 +00:00
parent 4d83dff992
commit 2a2ebc98ed
2 changed files with 11 additions and 1 deletions
-1
View File
@@ -47,7 +47,6 @@ CMAKE_ARGS= -DREADLINEDIR:STRING="/usr" \
CPPFLAGS+= ${CFLAGS} -fno-inline -DNPY_NO_DEPRECATED_API -DNPY_1_7_API_VERSION
CXXFLAGS+= -std=gnu++11
LDFLAGS+= -lpthread -L${LOCALBASE}/lib
# Two tests fail - https://github.com/gnudatalanguage/gdl/issues/2158
TEST_TARGET= test
SLAVEDIRS= science/py-gnudatalanguage
@@ -0,0 +1,11 @@
--- testsuite/get_path_to_exe.pro.orig 2025-12-18 17:13:01 UTC
+++ testsuite/get_path_to_exe.pro
@@ -11,7 +11,7 @@ known_case=0
;
; On Linux, this is fine with GDL, IDL & FL
;
-if (STRLOWCASE(!version.os) EQ 'linux') then begin
+if (STRLOWCASE(!version.os_family) eq 'unix') then begin
get_pid=FILE_READLINK('/proc/self')
get_abspath_to_exe=FILE_READLINK('/proc/'+get_pid+'/exe')
known_case=1