As tests are executed in separate directories now, there is no need to
remove sample file.
* tests/xstat.c (main): Remove unlink calls.
int rc;
rc = create_sample(sample, SAMPLE_SIZE);
- if (rc) {
- (void) unlink(sample);
+ if (rc)
return rc;
- }
# if TEST_BOGUS_STRUCT_STAT
STRUCT_STAT *st_cut = tail_alloc(sizeof(long) * 4);
if (errno != EOVERFLOW) {
rc = (errno == ENOSYS) ? 77 : 1;
perror(TEST_SYSCALL_STR);
- (void) unlink(sample);
return rc;
}
}
# endif /* IS_STATX */
- (void) unlink(sample);
return 1;
}
# endif /* IS_STATX */
- (void) unlink(sample);
-
puts("+++ exited with 0 +++");
return 0;
}