spack/var/spack/repos/builtin/packages/c-blosc/test_forksafe.patch
Glenn Johnson 6278ba43e9 Update c-blosc and fix building tests with icc (#12204)
- Update c-blosc to 1.17.0
- Add patch to build test_forksafe for versions 1.15.0 through 1.17.0
  when compiled with the Intel compiler.
- Remove code that turned off building the test with the Intel compiler
2019-08-02 19:05:43 -05:00

11 lines
329 B
Diff

--- a/tests/test_forksafe.c 2019-07-30 15:01:36.208670230 -0500
+++ b/tests/test_forksafe.c 2019-07-30 15:02:27.475543401 -0500
@@ -43,5 +43,6 @@
int success = 0;
int status = 0;
- for(float sec = 0; sec < 1; ) {
+ float sec = 0;
+ while (sec < 1) {
if(waitpid(newpid, &status, WNOHANG) != 0) {
success = 1;