diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-08-25 13:57:38 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-08-25 14:00:42 +0900 |
| commit | ac7abbbe3fa2eea01defb670abc7dc1dc336cf21 (patch) | |
| tree | cb8c451110acbd394667e94ae66c53dc422398b8 /internal/rosa/rosa_test.go | |
| parent | 7ee5d5368de5494350e7766a595c2bdc8f01ce80 (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 'internal/rosa/rosa_test.go')
| -rw-r--r-- | internal/rosa/rosa_test.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/internal/rosa/rosa_test.go b/internal/rosa/rosa_test.go index 8d0917bb..86468ea4 100644 --- a/internal/rosa/rosa_test.go +++ b/internal/rosa/rosa_test.go @@ -28,7 +28,6 @@ var ( ) func TestMain(m *testing.M) { - rosa.Native().DropCaches("", rosa.OptLLVMNoLTO) container.TryArgv0(nil) code := m.Run() @@ -79,8 +78,8 @@ func TestCureAll(t *testing.T) { cache := getCache(t) t.Parallel() - for _, p := range rosa.Native().CollectAll() { - _, a := rosa.Native().Std().MustLoad(p) + for _, p := range rosa.CollectAll() { + _, a := rosa.MustLoad(p) t.Run(p.String(), func(t *testing.T) { t.Parallel() @@ -94,7 +93,7 @@ func TestCureAll(t *testing.T) { } func BenchmarkStage3(b *testing.B) { - t := rosa.Native().Clone().Std() + t := rosa.New().Std() llvm := rosa.H("llvm") for b.Loop() { |
