Fix brittle shmop test
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 13 May 2020 21:09:57 +0000 (23:09 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 13 May 2020 21:25:28 +0000 (23:25 +0200)
commit1892e3abaaecff13e7b124ec4b19c2f23e2d8f69
tree7ef2423ab2a3963f2d5ed5303b4140f2c6cdb400
parent129fd647a16b2353dd5a92edccc904619e68ab77
Fix brittle shmop test

To solve bug #70886, the test uses random keys to prevent collisions;
however, this is not guaranteed, and as such it may even collide with
other tests in the shmop test suite.  The proper solution would be to
use a single key (which could be randomly generated), but to actually
`shmop_close()` after each `shmop_delete()`.  This would, however, not
work on Windows due to bug #65987.  Therefore we use three different
keys for now.
ext/shmop/tests/002.phpt