From ac7abbbe3fa2eea01defb670abc7dc1dc336cf21 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 25 Aug 2026 13:57:38 +0900 Subject: internal/rosa: read-only access to built-ins This removes potential footguns caused by mutable builtins without requiring unnecessary clones. Signed-off-by: Ophestra --- cmd/mbf/main_test.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'cmd/mbf/main_test.go') diff --git a/cmd/mbf/main_test.go b/cmd/mbf/main_test.go index 83dc9a98..76e8d094 100644 --- a/cmd/mbf/main_test.go +++ b/cmd/mbf/main_test.go @@ -8,11 +8,6 @@ import ( "hakurei.app/internal/rosa" ) -func TestMain(m *testing.M) { - rosa.Native().DropCaches("", rosa.OptLLVMNoLTO) - os.Exit(m.Run()) -} - func TestCureAll(t *testing.T) { t.Parallel() const env = "ROSA_TEST_DAEMON" @@ -35,8 +30,8 @@ func TestCureAll(t *testing.T) { } }) - for _, handle := range rosa.Native().Collect() { - _, a := rosa.Native().Std().MustLoad(handle) + for _, handle := range rosa.Collect() { + _, a := rosa.MustLoad(handle) t.Run(handle.String(), func(t *testing.T) { _, err := cureRemote(t.Context(), &addr, a, 0) if err != nil { -- cgit v1.3.1