]> Cypherpunks repositories - gostls13.git/commit
syscall: skip TestSyscallNoError on mips{,le}
authorTobias Klauser <tklauser@distanz.ch>
Fri, 8 Nov 2019 08:25:51 +0000 (09:25 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 9 Nov 2019 19:25:46 +0000 (19:25 +0000)
commit6e111956ab4849976f9dcf46ecac575fa8105268
tree541ef87b27d85e029152a54055302e5c87474087
parenta0262b201f6d66142ae1e01723430a2471799404
syscall: skip TestSyscallNoError on mips{,le}

On MIPS, Linux returns whether the syscall had an error in a separate
register (R7), not using a negative return value as on other
architectures. Thus, skip TestSyscallNoError as there is no error case
for syscall.RawSyscall which it could test against.

Also reformat the error output so the expected and gotten values are
aligned so they're easier to compare.

Fixes #35422

Change-Id: Ibc88f7c5382bb7ee8faf15ad4589ca1f9f017a06
Reviewed-on: https://go-review.googlesource.com/c/go/+/205898
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/syscall/syscall_linux_test.go