]> Cypherpunks.ru repositories - gostls13.git/commit
runtime/trace: fix TestTraceSymbolize when GOMAXPROCS=1
authorDavid du Colombier <0intro@gmail.com>
Tue, 13 Feb 2018 21:11:20 +0000 (22:11 +0100)
committerDavid du Colombier <0intro@gmail.com>
Tue, 13 Feb 2018 22:55:49 +0000 (22:55 +0000)
commit5114a7daa2f128d2de82cddb29a076d2a8e4def8
treeb30b6c671f6c9e204184685db04ca8981a802663
parent8693b4f095b2efdbd11967655579606bc3192c59
runtime/trace: fix TestTraceSymbolize when GOMAXPROCS=1

CL 92916 added the GOMAXPROCS test in TestTraceSymbolize.

This test only succeeds when the value of GOMAXPROCS changes.

Since the test calls runtime.GOMAXPROCS(1), it will fails
on machines where GOMAXPROCS=1.

This change fixes the test by calling runtime.GOMAXPROCS(oldGoMaxProcs+1).

Fixes #23816.

Change-Id: I1183dbbd7db6077cbd7fa0754032ff32793b2195
Reviewed-on: https://go-review.googlesource.com/93735
Run-TryBot: David du Colombier <0intro@gmail.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/trace/trace_stack_test.go