kumquat-buildroot/package/glog/0001-symbolize_unitests-some-tests-require-HAVE_STACKTRAC.patch
Gilles Talis 249fc8ce2c package/glog: bump to version 0.4.0
Also fixed a build issue reported by test-pkg.

We now need to AUTORECONF as the pre-generated configure script is no
longer provided in the Git repository.

Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-10-27 10:11:28 +01:00

40 lines
1.2 KiB
Diff

From 87b41094299cdc626876085549725ed0205ca830 Mon Sep 17 00:00:00 2001
From: Gilles Talis <gilles.talis@gmail.com>
Date: Sat, 26 Oct 2019 19:10:43 +0200
Subject: [PATCH] symbolize_unitests: some tests require HAVE_STACKTRACE
defined to be run
The following test cases functions:
- TestWithPCInsideInlineFunction
- TestWithPCInsideNonInlineFunction
- TestWithReturnAddress
are defined if HAVE_STACKTRACE is defined
Make sure they are invoked under the same condition
Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
---
src/symbolize_unittest.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/symbolize_unittest.cc b/src/symbolize_unittest.cc
index 9a17e7b..e11470e 100644
--- a/src/symbolize_unittest.cc
+++ b/src/symbolize_unittest.cc
@@ -407,9 +407,12 @@ int main(int argc, char **argv) {
// used to install some callback function at InitGoogle() time.
InstallSymbolizeCallback(NULL);
+# if defined(HAVE_STACKTRACE)
TestWithPCInsideInlineFunction();
TestWithPCInsideNonInlineFunction();
TestWithReturnAddress();
+# endif
+
return RUN_ALL_TESTS();
# elif defined(OS_WINDOWS) || defined(OS_CYGWIN)
TestWithReturnAddress();
--
2.17.1