mirror of
https://github.com/go-delve/delve.git
synced 2025-10-28 04:35:19 +08:00
test: fix tests on arm64
* remove skip-code of some arm64 tests, which implemented. * fix errors in testsuits for arm64
This commit is contained in:
@ -283,7 +283,7 @@ func TestIssue411(t *testing.T) {
|
||||
|
||||
func TestScopePrefix(t *testing.T) {
|
||||
if runtime.GOARCH == "arm64" {
|
||||
t.Skip("test is not valid on ARM64")
|
||||
t.Skip("arm64 do not support Stacktrace for now")
|
||||
}
|
||||
const goroutinesLinePrefix = " Goroutine "
|
||||
const goroutinesCurLinePrefix = "* Goroutine "
|
||||
@ -678,9 +678,6 @@ func TestCheckpoints(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestNextWithCount(t *testing.T) {
|
||||
if runtime.GOARCH == "arm64" {
|
||||
t.Skip("test is not valid on ARM64")
|
||||
}
|
||||
test.AllowRecording(t)
|
||||
withTestTerminal("nextcond", t, func(term *FakeTerminal) {
|
||||
term.MustExec("break main.main")
|
||||
@ -850,7 +847,7 @@ func TestIssue1090(t *testing.T) {
|
||||
|
||||
func TestPrintContextParkedGoroutine(t *testing.T) {
|
||||
if runtime.GOARCH == "arm64" {
|
||||
t.Skip("test is not valid on ARM64")
|
||||
t.Skip("arm64 do not support Stacktrace for now")
|
||||
}
|
||||
withTestTerminal("goroutinestackprog", t, func(term *FakeTerminal) {
|
||||
term.MustExec("break stacktraceme")
|
||||
@ -887,9 +884,6 @@ func TestPrintContextParkedGoroutine(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestStepOutReturn(t *testing.T) {
|
||||
if runtime.GOARCH == "arm64" {
|
||||
t.Skip("test is not valid on ARM64")
|
||||
}
|
||||
ver, _ := goversion.Parse(runtime.Version())
|
||||
if ver.Major >= 0 && !ver.AfterOrEqual(goversion.GoVersion{1, 10, -1, 0, 0, ""}) {
|
||||
t.Skip("return variables aren't marked on 1.9 or earlier")
|
||||
@ -929,7 +923,7 @@ func TestOptimizationCheck(t *testing.T) {
|
||||
|
||||
func TestTruncateStacktrace(t *testing.T) {
|
||||
if runtime.GOARCH == "arm64" {
|
||||
t.Skip("test is not valid on ARM64")
|
||||
t.Skip("arm64 do not support Stacktrace for now")
|
||||
}
|
||||
withTestTerminal("stacktraceprog", t, func(term *FakeTerminal) {
|
||||
term.MustExec("break main.stacktraceme")
|
||||
@ -949,7 +943,7 @@ func TestTruncateStacktrace(t *testing.T) {
|
||||
|
||||
func TestIssue1493(t *testing.T) {
|
||||
if runtime.GOARCH == "arm64" {
|
||||
t.Skip("test is not valid on ARM64")
|
||||
t.Skip("arm64 do not support FpRegs for now")
|
||||
}
|
||||
// The 'regs' command without the '-a' option should only return
|
||||
// general purpose registers.
|
||||
@ -972,7 +966,7 @@ func findStarFile(name string) string {
|
||||
|
||||
func TestIssue1598(t *testing.T) {
|
||||
if runtime.GOARCH == "arm64" {
|
||||
t.Skip("test is not valid on ARM64")
|
||||
t.Skip("arm64 do not support FunctionCall for now")
|
||||
}
|
||||
test.MustSupportFunctionCalls(t, testBackend)
|
||||
withTestTerminal("issue1598", t, func(term *FakeTerminal) {
|
||||
|
||||
Reference in New Issue
Block a user