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:
Hamza El-Saawy authored and GitHub committed 2023-07-21 18:06:41 -04:00
1 parent 10d5703c7b
commit 19a9f656e1
11 files changed
+86 -46

No files matched your search

+2
View File
@@ -87,6 +87,8 @@ func TestGrantVmGroupAccess(t *testing.T) {
}
func verifyVMAccountDACLs(t *testing.T, name string, permissions []string) {
t.Helper()
cmd := exec.Command("icacls", name)
outb, err := cmd.CombinedOutput()
if err != nil {