mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-05 02:24:05 +08:00
re PR go/48502 (os_test.TestStartProcess FAILs on Solaris 2)
PR go/48502 libgo/os: Fix test to run on Solaris. Patch brought over from upstream library. From-SVN: r174167
This commit is contained in:
parent
30a435d83a
commit
349ea8e855
@ -437,7 +437,8 @@ func exec(t *testing.T, dir, cmd string, args []string, expect string) {
|
||||
var b bytes.Buffer
|
||||
io.Copy(&b, r)
|
||||
output := b.String()
|
||||
if output != expect {
|
||||
// Accept /usr prefix because Solaris /bin is symlinked to /usr/bin.
|
||||
if output != expect && output != "/usr"+expect {
|
||||
t.Errorf("exec %q returned %q wanted %q",
|
||||
strings.Join(append([]string{cmd}, args...), " "), output, expect)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user