aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/main_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-08-25 13:57:38 +0900
committerOphestra <cat@gensokyo.uk>2026-08-25 14:00:42 +0900
commitac7abbbe3fa2eea01defb670abc7dc1dc336cf21 (patch)
treecb8c451110acbd394667e94ae66c53dc422398b8 /cmd/mbf/main_test.go
parent7ee5d5368de5494350e7766a595c2bdc8f01ce80 (diff)
internal/rosa: read-only access to built-ins
This removes potential footguns caused by mutable builtins without requiring unnecessary clones. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/mbf/main_test.go')
-rw-r--r--cmd/mbf/main_test.go9
1 files changed, 2 insertions, 7 deletions
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 {