diff --git a/tests/ext/test-lib.sh b/tests/ext/test-lib.sh
index 0cb9489..a8464c4 100644
--- tests/ext/test-lib.sh
+++ tests/ext/test-lib.sh
@@ -26,7 +26,7 @@ unset CDPATH
 
 #cd "$(dirname $0)"
 if test -z "$TESTDIR"; then
-  TESTDIR=$(realpath $(pwd))
+  TESTDIR=$(grealpath $(pwd))
 fi
 
 test_count=0