]> Cypherpunks.ru repositories - gostls13.git/commit
syscall: rewrite handle inheritance test to use C rather than Powershell
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 14 Jun 2021 23:55:50 +0000 (01:55 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 15 Jun 2021 10:11:46 +0000 (10:11 +0000)
commit4061d3463bb02def972e24aff173b0e5f98c0c3d
tree6143a47cef57a23a0db2e956c970d6a3978b183b
parentcf4e3e3d3b3a713ec4df7e995d5bf5caef045a09
syscall: rewrite handle inheritance test to use C rather than Powershell

In CL 327210, we disabled this test on arm platforms, because the
powershell shipped with those systems isn't native, which means it'd
refuse to load native DLLs. This commit rewrites the test to simply not
use Powershell, and instead compiles a trivial C program that tests for
the same thing. Reverting CL 316269 makes this test fail, as desired,
while applying it makes this test succeed.

Fixes #46701

Change-Id: If39612c57bf74c63adf58e2c49b5cb739b461fe5
Reviewed-on: https://go-review.googlesource.com/c/go/+/327969
Trust: Jason A. Donenfeld <Jason@zx2c4.com>
Trust: Alex Brainman <alex.brainman@gmail.com>
Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
src/syscall/syscall_windows_test.go