File: 0003-Use-full-path-for-testing.patch

package info (click to toggle)
denemo 2.6.39-0.3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 66,228 kB
  • sloc: ansic: 94,371; lisp: 38,489; xml: 22,630; python: 1,930; sh: 1,239; makefile: 642; yacc: 288; sed: 93
file content (28 lines) | stat: -rw-r--r-- 774 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
From: Josue Abarca <jmaslibre@debian.org>
Date: Fri, 12 Feb 2016 17:06:21 +0100
Subject: Use full path for testing
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Description: During the test execution using the full path to the
 binary instead of using a relative path, this allows one to make
 builds out of the tree.
Forwarded: no
Author: Josué Abarca <jmaslibre@debian.org>
Last-Update: 2014-08-31
---
 tests/common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/tests/common.h
+++ b/tests/common.h
@@ -3,7 +3,7 @@
 
 #include <glib.h>
 
-#define DENEMO "../src/denemo"
+#define DENEMO PACKAGE_SOURCE_DIR "/src/denemo"
 #define EXAMPLE_DIR "examples"
 #define FIXTURES_DIR "fixtures"
 #define TEMP_DIR "tmp"