Skip to content

Commit

Permalink
remove SetDllDirectory,because we load driver not dll
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkwork committed Jul 3, 2024
1 parent 2959324 commit 133500d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libhyperdbg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@ func stringToBytePointer(s string) *byte {

// go test -run ^\QTestSdk\E$
func TestSdk(t *testing.T) {
absPath := mylog.Check2(filepath.Abs("hyperkd.sys"))
SetCustomDriverPath(stringToBytePointer(absPath), stringToBytePointer(stream.BaseName(absPath)))
if isGithubCI() {
mylog.Info("github ci windows not support vt-x nested virtualization,skip test")
return
}
mylog.Call(func() {
absPath := mylog.Check2(filepath.Abs("hyperkd.sys"))
SetCustomDriverPath(stringToBytePointer(absPath), stringToBytePointer(stream.BaseName(absPath)))
assert.True(t, VmxSupportDetection())

mylog.Trace("InstallVmmDriver", InstallVmmDriver())
ConnectLocalDebugger()
mylog.Trace("LoadVmm", LoadVmm())
Expand Down Expand Up @@ -72,6 +71,7 @@ bp nt!IopXxxControlFile
g
kq l 60
*/

func Test2(t *testing.T) {
absPath := mylog.Check2(filepath.Abs("hyperkd.sys"))
SetCustomDriverPath(stringToBytePointer(absPath), stringToBytePointer(stream.BaseName(absPath)))
Expand Down

0 comments on commit 133500d

Please sign in to comment.