]> Cypherpunks.ru repositories - gostls13.git/commit
os: fix test failure when Workstation service is not enabled
authorqiulaidongfeng <2645477756@qq.com>
Sat, 29 Jul 2023 08:27:21 +0000 (08:27 +0000)
committerAlex Brainman <alex.brainman@gmail.com>
Mon, 7 Aug 2023 08:49:40 +0000 (08:49 +0000)
commit023668638298d0abf81090dd44464d3c8b724aa7
tree8a07d52504550f283771b9ba86b00e359423ee29
parent088f953fd0e5aa99a9e4a92acdb9a6058480491c
os: fix test failure when Workstation service is not enabled

TestNetworkSymbolicLink needs to enable the Workstation service, otherwise it will fail.

This CL avoids failure by skipping testing when the Workstation service is not enabled.

Fixes #61467

Change-Id: I395952fc18329e0b0dfdec55c8a18f4007ea91de

Change-Id: I395952fc18329e0b0dfdec55c8a18f4007ea91de
GitHub-Last-Rev: 7f089d1dff3ca939915fc8b3e49eba3908f15180
GitHub-Pull-Request: golang/go#61564
Reviewed-on: https://go-review.googlesource.com/c/go/+/512736
Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/internal/syscall/windows/syscall_windows.go
src/internal/syscall/windows/zsyscall_windows.go
src/os/os_windows_test.go