Lines 123-128
Link Here
|
123 |
APR_ASSERT_SUCCESS(tc, "Couldn't remove copy file", rv); |
123 |
APR_ASSERT_SUCCESS(tc, "Couldn't remove copy file", rv); |
124 |
} |
124 |
} |
125 |
|
125 |
|
|
|
126 |
static void link_existing(abts_case *tc, void *data) |
127 |
{ |
128 |
apr_status_t rv; |
129 |
|
130 |
rv = apr_file_link("data/file_datafile.txt", "data/file_datafile2.txt"); |
131 |
apr_file_remove("data/file_datafile2.txt", p); |
132 |
ABTS_ASSERT(tc, "Couldn't create hardlink to file", rv == APR_SUCCESS); |
133 |
} |
134 |
|
135 |
static void link_nonexisting(abts_case *tc, void *data) |
136 |
{ |
137 |
apr_status_t rv; |
138 |
|
139 |
rv = apr_file_link("data/does_not_exist.txt", "data/fake.txt"); |
140 |
ABTS_ASSERT(tc, "", rv != APR_SUCCESS); |
141 |
} |
142 |
|
126 |
abts_suite *testfilecopy(abts_suite *suite) |
143 |
abts_suite *testfilecopy(abts_suite *suite) |
127 |
{ |
144 |
{ |
128 |
suite = ADD_SUITE(suite) |
145 |
suite = ADD_SUITE(suite) |
Lines 133-138
Link Here
|
133 |
abts_run_test(suite, append_nonexist, NULL); |
150 |
abts_run_test(suite, append_nonexist, NULL); |
134 |
abts_run_test(suite, append_exist, NULL); |
151 |
abts_run_test(suite, append_exist, NULL); |
135 |
|
152 |
|
|
|
153 |
abts_run_test(suite, link_existing, NULL); |
154 |
abts_run_test(suite, link_nonexisting, NULL); |
155 |
|
136 |
return suite; |
156 |
return suite; |
137 |
} |
157 |
} |
138 |
|
158 |
|