bad_symlink

bad_symlink - { int rv; rv =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* * symlink */ #include <unistd.h> #include <errno.h> #include "test.h" static void symlink_empty1(void) { int rv; rv = symlink("", TESTLINK); report_test2(rv, errno, 0, EINVAL, "symlink -> empty string"); remove(TESTLINK); } static void symlink_empty2(void)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { int rv; rv = symlink(&quot;foo&quot;, &quot;&quot;); report_test(rv, errno, EINVAL, &quot;symlink named empty string&quot;); } void test_symlink(void) { test_symlink_paths(); symlink_empty1(); symlink_empty2(); }...
View Full Document

Ask a homework question - tutors are online