From 71518b025d89e5a1fe582446b61e3dcb40531a97 Mon Sep 17 00:00:00 2001 From: xushiwei Date: Sat, 15 Jun 2024 18:02:51 +0800 Subject: [PATCH] TestGoLibMath: set LLGOROOT --- cl/compile_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cl/compile_test.go b/cl/compile_test.go index cc3e5112..553b171d 100644 --- a/cl/compile_test.go +++ b/cl/compile_test.go @@ -17,6 +17,8 @@ package cl_test import ( + "os" + "path/filepath" "testing" "github.com/goplus/llgo/cl/cltest" @@ -66,6 +68,8 @@ 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) }