File: Fix-FileListingTest-and-ErrorTest_testSetFile-tests.patch

package info (click to toggle)
phpmyadmin 4%3A5.2.2-really%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 140,312 kB
  • sloc: javascript: 228,447; php: 166,904; xml: 17,847; sql: 504; sh: 275; makefile: 209; python: 205
file content (30 lines) | stat: -rw-r--r-- 1,041 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: William Desportes <williamdes@wdes.fr>
Date: Sat, 5 Jun 2021 00:26:14 +0200
Subject: Fix FileListingTest and ErrorTest::testSetFile depending on the
 filesystem path

Origin: vendor
Forwarded: not-needed
---
 test/classes/ErrorTest.php | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/test/classes/ErrorTest.php b/test/classes/ErrorTest.php
index 3c823d8..d78a216 100644
--- a/test/classes/ErrorTest.php
+++ b/test/classes/ErrorTest.php
@@ -104,12 +104,11 @@ class ErrorTest extends AbstractTestCase
         return [
             [
                 './ChangeLog',
-                '.' . DIRECTORY_SEPARATOR . 'ChangeLog',
+                Error::relPath('.' . DIRECTORY_SEPARATOR . 'ChangeLog'),
             ],
             [
                 __FILE__,
-                '.' . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR
-                    . 'classes' . DIRECTORY_SEPARATOR . 'ErrorTest.php',
+                Error::relPath(__FILE__),
             ],
             [
                 './NONEXISTING',