Skip to content

Commit dd79db7

Browse files
committed
improve GOOS=tamago test coverage
1 parent 5ec81d7 commit dd79db7

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

src/os/exec_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ func TestProcessLiteral(t *testing.T) {
1818
if runtime.GOOS == "windows" {
1919
t.Skip("Process literals do not work on Windows. FindProcess/etc must initialize the process handle")
2020
}
21-
if runtime.GOARCH == "wasm" {
22-
t.Skip("Signals send + notify not fully supported om wasm port")
21+
if runtime.GOARCH == "wasm" || runtime.GOOS == "tamago" {
22+
t.Skip("Signals send + notify not fully supported")
2323
}
2424

2525
c := make(chan os.Signal, 1)

src/os/os_test.go

+6-4
Original file line numberDiff line numberDiff line change
@@ -1624,7 +1624,7 @@ func TestChdirAndGetwd(t *testing.T) {
16241624
dirs = []string{"/system/bin"}
16251625
case "plan9":
16261626
dirs = []string{"/", "/usr"}
1627-
case "ios", "windows", "wasip1":
1627+
case "ios", "windows", "wasip1", "tamago":
16281628
dirs = nil
16291629
for _, dir := range []string{t.TempDir(), t.TempDir()} {
16301630
// Expand symlinks so path equality tests work.
@@ -1811,7 +1811,7 @@ func TestSeek(t *testing.T) {
18111811

18121812
func TestSeekError(t *testing.T) {
18131813
switch runtime.GOOS {
1814-
case "js", "plan9", "wasip1":
1814+
case "js", "plan9", "wasip1", "tamago":
18151815
t.Skipf("skipping test on %v", runtime.GOOS)
18161816
}
18171817
t.Parallel()
@@ -2704,6 +2704,8 @@ func TestPipeThreads(t *testing.T) {
27042704
t.Skip("skipping on js; no support for os.Pipe")
27052705
case "wasip1":
27062706
t.Skip("skipping on wasip1; no support for os.Pipe")
2707+
case "tamagp":
2708+
t.Skip("skipping on tamago; no support for os.Pipe")
27072709
}
27082710

27092711
threads := 100
@@ -3187,7 +3189,7 @@ func TestWriteStringAlloc(t *testing.T) {
31873189
// Test that it's OK to have parallel I/O and Close on a pipe.
31883190
func TestPipeIOCloseRace(t *testing.T) {
31893191
// Skip on wasm, which doesn't have pipes.
3190-
if runtime.GOOS == "js" || runtime.GOOS == "wasip1" {
3192+
if runtime.GOOS == "js" || runtime.GOOS == "wasip1" || runtime.GOOS == "tamago" {
31913193
t.Skipf("skipping on %s: no pipes", runtime.GOOS)
31923194
}
31933195
t.Parallel()
@@ -3265,7 +3267,7 @@ func TestPipeIOCloseRace(t *testing.T) {
32653267
// Test that it's OK to call Close concurrently on a pipe.
32663268
func TestPipeCloseRace(t *testing.T) {
32673269
// Skip on wasm, which doesn't have pipes.
3268-
if runtime.GOOS == "js" || runtime.GOOS == "wasip1" {
3270+
if runtime.GOOS == "js" || runtime.GOOS == "wasip1" || runtime.GOOS == "tamago" {
32693271
t.Skipf("skipping on %s: no pipes", runtime.GOOS)
32703272
}
32713273
t.Parallel()

src/os/pipe_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// Test broken pipes on Unix systems.
66
//
7-
//go:build !plan9 && !js && !wasip1
7+
//go:build !plan9 && !js && !wasip1 && !tamago
88

99
package os_test
1010

src/os/rawconn_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// Test use of raw connections.
66
//
7-
//go:build !plan9 && !js && !wasip1
7+
//go:build !plan9 && !js && !wasip1 && !tamago
88

99
package os_test
1010

src/os/timeout_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build !js && !plan9 && !wasip1 && !windows
5+
//go:build !js && !plan9 && !wasip1 && !windows && !tamago
66

77
package os_test
88

0 commit comments

Comments
 (0)