Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
8d672b26
Commit
8d672b26
authored
12 years ago
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: Disable crash tests that runs go tool.
From-SVN: r192735
parent
66f2cabc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
libgo/go/runtime/crash_test.go
+14
-9
No files found.
libgo/go/runtime/crash_test.go
View file @
8d672b26
...
...
@@ -7,7 +7,7 @@ package runtime_test
import
(
"io/ioutil"
"os"
"os/exec"
//
"os/exec"
"path/filepath"
"runtime"
"testing"
...
...
@@ -50,14 +50,19 @@ func testCrashHandler(t *testing.T, ct *crashTest) {
}
f
.
Close
()
got
,
err
:=
exec
.
Command
(
"go"
,
"run"
,
src
)
.
CombinedOutput
()
if
err
!=
nil
{
t
.
Fatalf
(
"program exited with error: %v
\n
%v"
,
err
,
string
(
got
))
}
want
:=
"main: recovered done
\n
new-thread: recovered done
\n
second-new-thread: recovered done
\n
main-again: recovered done
\n
"
if
string
(
got
)
!=
string
(
want
)
{
t
.
Fatalf
(
"expected %q, but got %q"
,
string
(
want
),
string
(
got
))
}
/*
gccgo does not have a go command.
got, err := exec.Command("go", "run", src).CombinedOutput()
if err != nil {
t.Fatalf("program exited with error: %v\n%v", err, string(got))
}
want := "main: recovered done\nnew-thread: recovered done\nsecond-new-thread: recovered done\nmain-again: recovered done\n"
if string(got) != string(want) {
t.Fatalf("expected %q, but got %q", string(want), string(got))
}
*/
}
func
TestCrashHandler
(
t
*
testing
.
T
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment