node/test/wasi/c/symlink_loop.c

10 lines
176 B
C

#include <assert.h>
#include <errno.h>
#include <stdio.h>
int main() {
FILE* file = fopen("/sandbox/subdir/loop1", "r");
assert(file == NULL);
assert(errno == ELOOP);
}