summaryrefslogtreecommitdiffstats
path: root/php-nette-robot-loader-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-06-20 13:09:50 +0200
committerRemi Collet <fedora@famillecollet.com>2016-06-20 13:09:50 +0200
commitb84a7e0b80a221082aa7bb6e596e730644cab794 (patch)
treec12d8367cd5624ffb603cfb6259acc4f496c8195 /php-nette-robot-loader-rpm.patch
parentb3d61e320a21a70ee22f068823aa567aab6a3e51 (diff)
php-nette-robot-loader: 2.3.2
Diffstat (limited to 'php-nette-robot-loader-rpm.patch')
-rw-r--r--php-nette-robot-loader-rpm.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/php-nette-robot-loader-rpm.patch b/php-nette-robot-loader-rpm.patch
new file mode 100644
index 0000000..4aba2ed
--- /dev/null
+++ b/php-nette-robot-loader-rpm.patch
@@ -0,0 +1,15 @@
+diff -up tests/bootstrap.php.rpm tests/bootstrap.php
+--- tests/bootstrap.php.rpm 2016-06-20 12:18:26.000000000 +0200
++++ tests/bootstrap.php 2016-06-20 13:03:04.814182986 +0200
+@@ -16,8 +16,6 @@ date_default_timezone_set('Europe/Prague
+
+ // create temporary directory
+ define('TEMP_DIR', __DIR__ . '/tmp/' . lcg_value());
+-@mkdir(TEMP_DIR, 0777, TRUE); // @ - base directory may already exist
+-register_shutdown_function(function () {
+- Tester\Helpers::purge(TEMP_DIR);
+- rmdir(TEMP_DIR);
+-});
++@mkdir(__DIR__ . '/tmp/');
++@mkdir(TEMP_DIR); // @ - base directory may already exist
++