Merge: Less randomness and race conditions in tests
authorJean Privat <jean@pryen.org>
Thu, 26 May 2016 13:06:47 +0000 (09:06 -0400)
committerJean Privat <jean@pryen.org>
Thu, 26 May 2016 13:06:47 +0000 (09:06 -0400)
commita00df2859a9367fa71fe562d3d698020edf93c7b
treefe7d2e1498b7ab07e3189b52ca1dc32522ec5473
parent5f1db6a02d9457e27733c571919d8960ced93a17
parentf3309b26682051ae3cfc8e3c86bdb44456e4cba1
Merge: Less randomness and race conditions in tests

Parallel executions can cause some race collisions on named resources (e.g. DB table names).

To solve this issue, `tests.sh` and `nitunit` initialize  `NIT_TESTING_ID` with a distinct integer identifier that can be used to give unique names to resources.

`rand` is not a recommended way to get a distinct identifier because its randomness is disabled by default.

Pull-Request: #2129
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>