Skip to content

Commit

Permalink
SetCustomDriverPath need check arg format
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkwork committed Jul 3, 2024
1 parent 862731b commit d6fadcd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libhyperdbg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"
"github.com/ddkwork/golibrary/stream"
"os"
"path/filepath"
"strings"
Expand All @@ -27,8 +28,8 @@ func stringToBytePointer(s string) *byte {
// run now will bsod
// go test -run ^\QTestSdk\E$
func TestSdk(t *testing.T) {
AddCurrentDirToPath()
SetCustomDriverPath(stringToBytePointer(mylog.Check2(filepath.Abs("."))), stringToBytePointer("hyperkd.sys"))
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
Expand Down

0 comments on commit d6fadcd

Please sign in to comment.