(t *testing.T)
| 296 | } |
| 297 | |
| 298 | func TestProgramKernelVersion(t *testing.T) { |
| 299 | testutils.SkipOnOldKernel(t, "4.20", "KernelVersion") |
| 300 | |
| 301 | _ = mustNewProgram(t, &ProgramSpec{ |
| 302 | Type: Kprobe, |
| 303 | Instructions: asm.Instructions{ |
| 304 | asm.LoadImm(asm.R0, 0, asm.DWord), |
| 305 | asm.Return(), |
| 306 | }, |
| 307 | KernelVersion: 42, |
| 308 | License: "MIT", |
| 309 | }, nil) |
| 310 | } |
| 311 | |
| 312 | func TestProgramVerifierLog(t *testing.T) { |
| 313 | check := func(t *testing.T, err error) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…