all: apply modernisers
Test / Create distribution (push) Successful in 58s
Test / Sandbox (push) Successful in 2m48s
Test / ShareFS (push) Successful in 3m53s
Test / Hakurei (push) Successful in 4m0s
Test / Sandbox (race detector) (push) Successful in 5m37s
Test / Hakurei (race detector) (push) Successful in 6m40s
Test / Flake checks (push) Successful in 1m12s
Test / Create distribution (push) Successful in 58s
Test / Sandbox (push) Successful in 2m48s
Test / ShareFS (push) Successful in 3m53s
Test / Hakurei (push) Successful in 4m0s
Test / Sandbox (race detector) (push) Successful in 5m37s
Test / Hakurei (race detector) (push) Successful in 6m40s
Test / Flake checks (push) Successful in 1m12s
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
//go:build testtool
|
||||
|
||||
/*
|
||||
Package sandbox provides utilities for checking sandbox outcome.
|
||||
|
||||
This package must never be used outside integration tests, there is a much better native implementation of mountinfo
|
||||
in the public sandbox/vfs package. Files in this package are excluded by the build system to prevent accidental misuse.
|
||||
*/
|
||||
// Package sandbox provides utilities for checking sandbox outcome.
|
||||
//
|
||||
// This package must never be used outside integration tests, there is a much
|
||||
// better native implementation of mountinfo in the public sandbox/vfs package.
|
||||
// Files in this package are excluded by the build system to prevent accidental
|
||||
// misuse.
|
||||
package sandbox
|
||||
|
||||
import (
|
||||
@@ -204,8 +204,8 @@ func MustCheckFilter(pid int, want string) {
|
||||
return
|
||||
}
|
||||
|
||||
var perr *ptraceError
|
||||
if !errors.As(err, &perr) {
|
||||
perr, ok := errors.AsType[*ptraceError](err)
|
||||
if !ok {
|
||||
fatalf("%s", err)
|
||||
}
|
||||
switch perr.op {
|
||||
|
||||
Reference in New Issue
Block a user