mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-09-05 08:37:37 -04:00
Update tests; run fuzzing (#294)
Run fuzzing tests in CI. Use race detector when running tests. Add missing `t.Helper()` calls. Update test helpers in `pkg/bindfilter` to use `RtlGetNtVersionNumbers` instead of reading registry, and skip tests if not running as admin. Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
This commit is contained in:
+5
-2
@@ -37,6 +37,7 @@ func serverListen(u testUtil) (l *HvsockListener, a *HvsockAddr) {
|
||||
u.T.Logf("address collision %v", a)
|
||||
continue
|
||||
}
|
||||
u.T.Logf("listening on %v", a)
|
||||
break
|
||||
}
|
||||
u.Must(err, "could not listen")
|
||||
@@ -579,9 +580,11 @@ type testUtil struct {
|
||||
T testing.TB
|
||||
}
|
||||
|
||||
func newUtil(t testing.TB) testUtil {
|
||||
func newUtil(tb testing.TB) testUtil {
|
||||
tb.Helper()
|
||||
|
||||
return testUtil{
|
||||
T: t,
|
||||
T: tb,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user