uint32_t target;
if (flags & BROKEN) {
- target = -(rand() % 4096);
+ target = -(rand() % 4096) - 1;
} else {
target = rand() % (num_exec + 1);
if ((flags & USE_LUT) == 0)
fail(exec(fd, handle, USE_LUT | BROKEN));
for (i = 2; i <= 65536; i *= 2) {
+ if (many_exec(fd, handle, i+1, i+1, NORMAL) == -1 &&
+ errno == ENOSPC)
+ break;
+
pass(many_exec(fd, handle, i-1, i-1, NORMAL));
pass(many_exec(fd, handle, i-1, i, NORMAL));
pass(many_exec(fd, handle, i-1, i+1, NORMAL));