]> Cypherpunks repositories - gostls13.git/commit
internal/testenv: probe for symlink on wasip1
authorJohan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Fri, 28 Apr 2023 04:39:57 +0000 (21:39 -0700)
committerJohan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Tue, 2 May 2023 05:22:00 +0000 (05:22 +0000)
commit53279a6af372e3708afe8eaf618d56ee98edf045
tree98b7019e0792829d85c859ff82f39de85c44a1a5
parent4e8c6af239b6a941dafc1288bb5e275add530873
internal/testenv: probe for symlink on wasip1

Certain WASI runtimes do not support generic symlinks, and
instead return permission errors when they are attempted.
Perform a runtime probe of symlink support in hasSymlink
on wasip1 to determine whether the runtime supports
generic symlinks.

Also perform the same probe on android.

For #59583

Change-Id: Iae5b704e670650d38ee350a5a98f99dcce8b5b28
Reviewed-on: https://go-review.googlesource.com/c/go/+/490115
Auto-Submit: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Reviewed-by: Achille Roussel <achille.roussel@gmail.com>
TryBot-Bypass: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/internal/testenv/testenv.go
src/internal/testenv/testenv_notunix.go
src/internal/testenv/testenv_notwin.go