Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ TEST_PACKAGES_FAST = \
path \
reflect \
sync \
testing \
testing/iotest \
text/scanner \
unicode \
Expand Down Expand Up @@ -480,7 +479,7 @@ TEST_PACKAGES_HOST := $(TEST_PACKAGES_FAST) $(TEST_PACKAGES_WINDOWS)
TEST_IOFS := false
endif

TEST_SKIP_FLAG := -skip='TestExtraMethods|TestParseAndBytesRoundTrip/P256/Generic'
TEST_SKIP_FLAG := -skip='TestExtraMethods|TestParseAndBytesRoundTrip/P256/Generic|^Fuzz'

# Test known-working standard library packages.
# TODO: parallelize, and only show failing tests (no implied -v flag).
Expand Down
1 change: 0 additions & 1 deletion loader/goroot.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ func pathsToOverride(goMinor int, needsSyscallPackage bool) map[string]bool {
"reflect/": false,
"runtime/": false,
"sync/": true,
"testing/": true,
"tinygo/": false,
"unique/": false,
}
Expand Down
4 changes: 3 additions & 1 deletion src/runtime/debug/garbage.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ func SetPanicOnFault(enabled bool) bool {

func WriteHeapDump(fd uintptr)

func SetTraceback(level string)
// Unimplemented.
func SetTraceback(level string) {
}

func SetMemoryLimit(limit int64) int64 {
return limit
Expand Down
5 changes: 5 additions & 0 deletions src/runtime/extern.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
package runtime

func Callers(skip int, pc []uintptr) int {
if len(pc) > 0 {
// The testing package expects at least one caller in all cases.
pc[0] = 0
return 1
}
return 0
}

Expand Down
16 changes: 16 additions & 0 deletions src/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,19 @@ func getAuxv() []uintptr {
func cgo_errno() uintptr {
return uintptr(*libc_errno_location())
}

// Unimplemented.
var MemProfileRate int = 0

// Unimplemented.
func SetBlockProfileRate(rate int) {
}

var mutexProfileFraction int

// Unimplemented.
func SetMutexProfileFraction(rate int) int {
previous := mutexProfileFraction
mutexProfileFraction = rate
return previous
}
Loading
Loading