Package: j4-dmenu-desktop / 2.16-1

0002-remove-testcase-for-desktop-systems.patch Patch series | 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
31
From: Peter Spiess-Knafl <dev@spiessknafl.at>
Date: Fri, 17 Apr 2015 20:25:43 +0200
Subject: remove testcase for desktop systems

---
 src/TestSearchPath.cc | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/src/TestSearchPath.cc b/src/TestSearchPath.cc
index f6c1773..24b4912 100644
--- a/src/TestSearchPath.cc
+++ b/src/TestSearchPath.cc
@@ -9,18 +9,6 @@
 
 static const std::string test_files = TEST_FILES;
 
-TEST_CASE("SearchPath/XDG_DATA_HOME", "Check SearchPath honors XDG_DATA_HOME")
-{
-    setenv("XDG_DATA_HOME", "/usr/share", 1);
-    setenv("XDG_DATA_DIRS", " ", 1);
-
-    SearchPath sp;
-    std::vector<std::string> result(sp.begin(), sp.end());
-
-    REQUIRE( result.size() == 1 );
-    REQUIRE( result[0] == "/usr/share/applications/" );
-}
-
 TEST_CASE("SearchPath/XDG_DATA_DIRS", "Check SearchPath honors XDG_DATA_DIRS")
 {
     unsetenv("XDG_DATA_HOME");