summaryrefslogtreecommitdiffhomepage
path: root/setupapi/zsetupapi_windows_test.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-02-07 04:18:27 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-07 04:39:59 +0100
commitea59177f1c6ab9031d5d30771410c9514fa551d9 (patch)
treecfe5c11f9340d468dfd5f80b76db78584a9ef20a /setupapi/zsetupapi_windows_test.go
parent306d08e692bc9b2249078c0b4ab7eb3e42078230 (diff)
wintun: Introduce new package for obscuring Windows bits
Diffstat (limited to 'setupapi/zsetupapi_windows_test.go')
-rw-r--r--setupapi/zsetupapi_windows_test.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/setupapi/zsetupapi_windows_test.go b/setupapi/zsetupapi_windows_test.go
deleted file mode 100644
index 09b9195..0000000
--- a/setupapi/zsetupapi_windows_test.go
+++ /dev/null
@@ -1,20 +0,0 @@
-/* SPDX-License-Identifier: MIT
- *
- * Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
- */
-
-package setupapi
-
-import (
- "syscall"
- "testing"
-
- "golang.org/x/sys/windows"
-)
-
-func TestSetupDiDestroyDeviceInfoList(t *testing.T) {
- err := SetupDiDestroyDeviceInfoList(DevInfo(windows.InvalidHandle))
- if errWin, ok := err.(syscall.Errno); !ok || errWin != 6 /*ERROR_INVALID_HANDLE*/ {
- t.Errorf("SetupDiDestroyDeviceInfoList(nil, ...) should fail with ERROR_INVALID_HANDLE")
- }
-}