From: Eugene Syromyatnikov Date: Thu, 20 Apr 2017 01:04:50 +0000 (+0200) Subject: tests/xstat.c: do not remove sample file after test X-Git-Tag: v4.17~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1f9eabfd80e58b610d6c6bfbeefe6623a6de0fd;p=strace tests/xstat.c: do not remove sample file after test As tests are executed in separate directories now, there is no need to remove sample file. * tests/xstat.c (main): Remove unlink calls. --- diff --git a/tests/xstatx.c b/tests/xstatx.c index 8d486ad5..38f115d3 100644 --- a/tests/xstatx.c +++ b/tests/xstatx.c @@ -278,10 +278,8 @@ main(void) 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); @@ -305,7 +303,6 @@ main(void) if (errno != EOVERFLOW) { rc = (errno == ENOSYS) ? 77 : 1; perror(TEST_SYSCALL_STR); - (void) unlink(sample); return rc; } } @@ -369,7 +366,6 @@ main(void) # endif /* IS_STATX */ - (void) unlink(sample); return 1; } @@ -437,8 +433,6 @@ main(void) # endif /* IS_STATX */ - (void) unlink(sample); - puts("+++ exited with 0 +++"); return 0; }