]> Cypherpunks.ru repositories - gostls13.git/commit
os: fix TestChdirAndGetwd/ReaddirnamesOneAtATime on wasip1 to run on Windows hosts
authorTakeshi Yoneda <t.y.mathetake@gmail.com>
Thu, 27 Apr 2023 04:37:48 +0000 (13:37 +0900)
committerGopher Robot <gobot@golang.org>
Fri, 28 Apr 2023 17:26:10 +0000 (17:26 +0000)
commit08357012247db5c84002b7a4c1693411a1a9b295
tree09c7908f838b92cf5b3ebe1fddf06bf633dab80a
parent972774c4448f41826577304da0b5fd7d6936df4c
os: fix TestChdirAndGetwd/ReaddirnamesOneAtATime on wasip1 to run on Windows hosts

TestReaddirnamesOneAtATime and TestChdirAndGetwd assumes the underlying file system
has /usr/bin but it is not the case when running it on WASI runtime hosted on Windows.

This change adds wasip1 in the special cased switch case to make them host OS agonstic.

Change-Id: Idb667021b565f939c814b9cd9e637cd75f9a610d
Reviewed-on: https://go-review.googlesource.com/c/go/+/489575
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
src/os/os_test.go