Skip to content

Commit 9ce354f

Browse files
committed
Tests: Clean up the resulting /tmp/foo* files from the tempnam call.
git-svn-id: https://develop.svn.wordpress.org/trunk@31937 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 842d6a9 commit 9ce354f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/phpunit/tests/file.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ class Tests_File extends WP_UnitTestCase {
77

88
function setUp() {
99
parent::setUp();
10-
$this->dir = dirname(tempnam('/tmp', 'foo'));
10+
11+
$file = tempnam( '/tmp', 'foo') ;
12+
$this->dir = dirname( $file );
13+
unlink( $file );
1114

1215
$this->badchars = '"\'[]*&?$';
1316
}

0 commit comments

Comments
 (0)