2016-08-17 Daniel Richard G. <skunk@iSKUNK.ORG>
+ maint: port tests to z/OS errno behavior
+ * tests/test-nonblocking-reader.h:
+ * tests/test-nonblocking-writer.h:
+ Accommodate z/OS errno code preferences. (I believe this should
+ still be within spec; IBM is good at following the letter if not
+ the spirit of such things.)
+
maint: preprocessor changes to support z/OS
* lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
* lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
ASSERT (spent_time < 0.5);
if (ret < 0)
{
- ASSERT (saved_errno == EAGAIN);
+ ASSERT (saved_errno == EAGAIN || saved_errno == EWOULDBLOCK);
usleep (SMALL_DELAY);
}
else
(long) ret, dbgstrerror (ret < 0, saved_errno));
if (ret < 0 && bytes_written >= data_block_size)
{
- ASSERT (saved_errno == EAGAIN);
+ ASSERT (saved_errno == EAGAIN || saved_errno == EWOULDBLOCK);
ASSERT (spent_time < 0.5);
break;
}
ASSERT (spent_time < 0.5);
if (ret < 0)
{
- ASSERT (saved_errno == EAGAIN);
+ ASSERT (saved_errno == EAGAIN || saved_errno == EWOULDBLOCK);
usleep (SMALL_DELAY);
}
else
ASSERT (spent_time < 0.5);
if (ret < 0)
{
- ASSERT (saved_errno == EAGAIN);
+ ASSERT (saved_errno == EAGAIN || saved_errno == EWOULDBLOCK);
usleep (SMALL_DELAY);
}
else