mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-09-05 16:47:31 -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:
@@ -14,6 +14,8 @@ import (
|
||||
// so we check that the current.AllocationSize is >= expected.AllocationSize.
|
||||
// https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-fscc/5afa7f66-619c-48f3-955f-68c4ece704ae
|
||||
func checkFileStandardInfo(t *testing.T, current, expected *FileStandardInfo) {
|
||||
t.Helper()
|
||||
|
||||
if current.AllocationSize < expected.AllocationSize {
|
||||
t.Fatalf("FileStandardInfo unexpectedly had AllocationSize %d, expecting >=%d", current.AllocationSize, expected.AllocationSize)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user