zipos_to_fd - remove unncessary lseeks, add _unassert, fix MODE=dbg

This commit is contained in:
Gavin Hayes 2023-02-03 11:41:24 -05:00
parent df713afa90
commit a2b0542349

View file

@ -103,7 +103,7 @@ TEST(fexecve, APE) {
TEST(fexecve, zipos) {
if (!IsLinux() && !IsFreebsd()) return;
int fd = open("/zip/life.elf", O_RDONLY);
SPAWN(vfork);
SPAWN(fork);
if (fd == -1 && errno == ENOSYS) _Exit(42);
fexecve(fd, (char *const[]){0}, (char *const[]){0});
EXITS(42);