Commit 242050d0 authored by Andrew Gerrand's avatar Andrew Gerrand

runtime: allow fake time writes to both stdout and stderr

In the previous sandbox implementation we read all sandboxed output
from standard output, and so all fake time writes were made to
standard output. Now we have a more sophisticated sandbox server
(see golang.org/x/playground/sandbox) that is capable of recording
both standard output and standard error, so allow fake time writes to
go to either file descriptor.

Change-Id: I79737deb06fd8e0f28910f21f41bd3dc1726781e
Reviewed-on: https://go-review.googlesource.com/2713Reviewed-by: 's avatarMinux Ma <minux@golang.org>
parent 3ab4b68b
...@@ -94,13 +94,13 @@ playback: ...@@ -94,13 +94,13 @@ playback:
MOVL n+8(FP), DX MOVL n+8(FP), DX
BSWAPL DX BSWAPL DX
MOVL DX, 12(SP) MOVL DX, 12(SP)
MOVL $1, DI // standard output MOVL fd+0(FP), DI
MOVL SP, SI MOVL SP, SI
MOVL $16, DX MOVL $16, DX
NACL_SYSCALL(SYS_write) NACL_SYSCALL(SYS_write)
// Write actual data. // Write actual data.
MOVL $1, DI // standard output MOVL fd+0(FP), DI
MOVL p+4(FP), SI MOVL p+4(FP), SI
MOVL n+8(FP), DX MOVL n+8(FP), DX
NACL_SYSCALL(SYS_write) NACL_SYSCALL(SYS_write)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment