gem_exec[n].handle = gem_create(fd, 4096);
gem_write(fd, gem_exec[n].handle, 0, batch, sizeof(batch));
- do_or_die(exec(fd, MAX_NUM_EXEC, 0, USE_LUT));
+ if (exec(fd, 1, 0, USE_LUT))
+ return 77;
for (p = pass; p->name != NULL; p++) {
for (n = 1; n <= MAX_NUM_EXEC; n *= 2) {
gem_write(fd, handle, 0, batch, sizeof(batch));
do_or_die(exec(fd, handle, NORMAL));
- do_or_die(exec(fd, handle, USE_LUT));
-
fail(exec(fd, handle, BROKEN));
+
+ if (exec(fd, handle, USE_LUT))
+ return 77;
+
+ do_or_die(exec(fd, handle, USE_LUT));
fail(exec(fd, handle, USE_LUT | BROKEN));
for (i = 2; i <= 65536; i *= 2) {