// P : mkdir -p capture/dir/empty // S : tags min capture // S : cc -o test.bc $file // S : expect --result valid // S : verify --capture capture/dir:follow:/ -o nofail:vfs test.bc #include #include #include #include #include #include #include int main() { int fd = open( "empty", O_RDONLY ); assert( fd >= 0 ); assert( close( fd ) == 0 ); fd = open( "empty", O_WRONLY ); assert( fd == -1 ); assert( errno == EISDIR ); return 0; }