From 7f11651311d9cd68221133becb07a0c5bc8d9a14 Mon Sep 17 00:00:00 2001 From: xushiwei Date: Sat, 15 Jun 2024 18:08:08 +0800 Subject: [PATCH] TestGoLibMath: mac only (temp) --- cl/compile_test.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cl/compile_test.go b/cl/compile_test.go index 553b171d..40980b1a 100644 --- a/cl/compile_test.go +++ b/cl/compile_test.go @@ -19,6 +19,7 @@ package cl_test import ( "os" "path/filepath" + "runtime" "testing" "github.com/goplus/llgo/cl/cltest" @@ -68,10 +69,12 @@ func TestPython(t *testing.T) { } func TestGoLibMath(t *testing.T) { - root, _ := filepath.Abs("..") - os.Setenv("LLGOROOT", root) - conf := build.NewDefaultConf(build.ModeInstall) - build.Do([]string{"math"}, conf) + if runtime.GOOS == "darwin" { // TODO(xsw): support linux/windows + root, _ := filepath.Abs("..") + os.Setenv("LLGOROOT", root) + conf := build.NewDefaultConf(build.ModeInstall) + build.Do([]string{"math"}, conf) + } } func TestVar(t *testing.T) {