aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/all_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-07 18:04:59 +0900
committerOphestra <cat@gensokyo.uk>2026-05-07 19:43:06 +0900
commit8d72b9e5bd8d99cbd32ce0ebe2f5da8e9b1d88ce (patch)
tree403a00ccd0d1ed98795a4e739b72f2de12b34102 /internal/rosa/all_test.go
parent8a3c3d145a560b91da1d9bce9070c20289b63502 (diff)
internal/pkg: optionally register binfmt
This transparently supports curing foreign exec artifacts. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/all_test.go')
-rw-r--r--internal/rosa/all_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/rosa/all_test.go b/internal/rosa/all_test.go
index 52eabf39..8f86201a 100644
--- a/internal/rosa/all_test.go
+++ b/internal/rosa/all_test.go
@@ -20,8 +20,8 @@ func TestLoad(t *testing.T) {
}
func BenchmarkAll(b *testing.B) {
- flags := rosa.Flags()
- b.Cleanup(func() { rosa.DropCaches(flags) })
+ arch, flags := rosa.Arch(), rosa.Flags()
+ b.Cleanup(func() { rosa.DropCaches(arch, flags) })
for b.Loop() {
for i := range rosa.PresetEnd {
@@ -29,7 +29,7 @@ func BenchmarkAll(b *testing.B) {
}
b.StopTimer()
- rosa.DropCaches(0)
+ rosa.DropCaches("", 0)
b.StartTimer()
}
}