Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkwork committed Jul 14, 2024
1 parent 904892b commit f54af30
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdk/sdk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion sdk/sdk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@ func TestSdk(t *testing.T) {
assert.True(t, VmxSupportDetection())
assert.True(t, SetCustomDriverPathEx(SysPath))

// SetTextMessageCallback()
log := ""
SetTextMessageCallback(StringToBytePointer(log))
go func() {
for {
if log != "" {
println(log)
}
}
}()

mylog.Trace("InstallVmmDriver", InstallVmmDriver())

Expand Down

0 comments on commit f54af30

Please sign in to comment.