File: 0003-Patch-out-prefix_path-test.patch

package info (click to toggle)
xtl 0.6.23-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,352 kB
  • sloc: cpp: 19,332; makefile: 164; python: 25
file content (23 lines) | stat: -rw-r--r-- 795 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
From: Gordon Ball <gordon@chronitis.net>
Date: Tue, 15 Dec 2020 13:24:41 +0000
Subject: Patch out prefix_path test

The test checks for a specific string in the executable path, the
existence of which depends on the layout of the build directory.
---
 test/test_xsystem.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test_xsystem.cpp b/test/test_xsystem.cpp
index 18f2ab7..adbd47d 100644
--- a/test/test_xsystem.cpp
+++ b/test/test_xsystem.cpp
@@ -26,7 +26,7 @@ namespace xtl
 
         EXPECT_NE(prefix.size(), exec_path.size());
         EXPECT_TRUE(std::equal(prefix.cbegin(), prefix.cend(), exec_path.cbegin()));
-        EXPECT_NE(exec_path.find("test_xtl"), std::string::npos);
+        //EXPECT_NE(exec_path.find("test_xtl"), std::string::npos);
     }
 }