base: Validate input in setNumCapabilities
authorBen Gamari <bgamari.foss@gmail.com>
Fri, 16 Jun 2017 19:18:48 +0000 (15:18 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 16 Jun 2017 19:18:49 +0000 (15:18 -0400)
commit9849403147b584ff160daeb4f13bf36adb2bab2e
tree71575819587edb945ad99e96637ed753e2b11324
parent430137c45420153dafbd448b4d509f893fe675f4
base: Validate input in setNumCapabilities

Test Plan: validate

Reviewers: austin, hvr, erikd, simonmar

Subscribers: rwbarton, thomie

GHC Trac Issues: #13832

Differential Revision: https://phabricator.haskell.org/D3652
libraries/base/GHC/Conc/Sync.hs
testsuite/tests/rts/T13832.hs [new file with mode: 0644]
testsuite/tests/rts/T13832.stderr [new file with mode: 0644]
testsuite/tests/rts/all.T