diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-07 18:04:59 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-07 19:43:06 +0900 |
| commit | 8d72b9e5bd8d99cbd32ce0ebe2f5da8e9b1d88ce (patch) | |
| tree | 403a00ccd0d1ed98795a4e739b72f2de12b34102 /internal/rosa/rosa_test.go | |
| parent | 8a3c3d145a560b91da1d9bce9070c20289b63502 (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/rosa_test.go')
| -rw-r--r-- | internal/rosa/rosa_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/rosa/rosa_test.go b/internal/rosa/rosa_test.go index b9f8206a..0eef8334 100644 --- a/internal/rosa/rosa_test.go +++ b/internal/rosa/rosa_test.go @@ -28,7 +28,7 @@ var ( ) func TestMain(m *testing.M) { - rosa.DropCaches(rosa.OptLLVMNoLTO) + rosa.DropCaches("", rosa.OptLLVMNoLTO) container.TryArgv0(nil) code := m.Run() @@ -94,14 +94,14 @@ func TestCureAll(t *testing.T) { } func BenchmarkStage3(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() { rosa.Std.Load(rosa.LLVM) b.StopTimer() - rosa.DropCaches(0) + rosa.DropCaches("", 0) b.StartTimer() } } |
