Skip to content

Commit 8ad447e

Browse files
committed
[test] Unlink directory instead of invoking rm shell command
to avoid -Wunused_result generated warnings.
1 parent bab6bef commit 8ad447e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roottest/root/io/prefetching/runPrefetchReading.C

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ Int_t runPrefetchReading(bool prefetch = true, bool caching = false)
201201
fprintf(stderr, "fPrefetchedBlocks = %lli\n", file->GetCacheRead()->GetPrefetchedBlocks());
202202

203203
fprintf(stderr, "Delete tmp directory: /tmp/xcache\n" );
204-
if (caching) system( "rm -r /tmp/xcache" );
204+
if (caching) {
205+
gSystem->Unlink("/tmp/xcache");
206+
}
205207

206208
file->Close();
207209
delete file;

0 commit comments

Comments
 (0)