Skip to content

Commit

Permalink
testutils: fix use of old NewSlicePointer
Browse files Browse the repository at this point in the history
The test doesn't compile due to a rebase snafu. Fix it by using the
new function.

Signed-off-by: Lorenz Bauer <[email protected]>
  • Loading branch information
lmb committed Feb 24, 2025
1 parent 1debf0b commit 061f55f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/testutils/bpffs_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import (
"path/filepath"
"testing"

"github.com/go-quicktest/qt"

"github.com/cilium/ebpf/asm"
"github.com/cilium/ebpf/internal"
"github.com/cilium/ebpf/internal/sys"
"github.com/cilium/ebpf/internal/testutils"
"github.com/go-quicktest/qt"
)

func TestTempBPFFS(t *testing.T) {
Expand All @@ -32,7 +33,7 @@ func TestTempBPFFS(t *testing.T) {
ProgType: 998, // XDP_TEST
License: sys.NewStringPointer(""),
InsnCnt: uint32(buffer.Len() / asm.InstructionSize),
Insns: sys.NewSlicePointer(buffer.Bytes()),
Insns: sys.SlicePointer(buffer.Bytes()),
})
qt.Assert(t, qt.IsNil(err))
defer progFd.Close()
Expand Down

0 comments on commit 061f55f

Please sign in to comment.