aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorLars Volker <lv@cloudera.com>2018-01-31 13:29:11 -0800
committerTed Mielczarek <ted@mielczarek.org>2018-02-20 11:08:52 +0000
commit49907e1c3457570f56d959ae26dec6c3a5edd417 (patch)
treef969036a1913824c314ea27a55ac244bdd416cc1 /configure.ac
parentFix crash when an NSException is thrown. (diff)
downloadbreakpad-49907e1c3457570f56d959ae26dec6c3a5edd417.tar.xz
Fix Travis build by running tests as root
A recent configuration change made it necessary to run our tests on Travis as root. This change also increases the timeout of ParallelChildCrashesDontHang to make it pass in Travis virtualized containers. Bug: google-breakpad:753 Change-Id: I6ca8ff4513c6ea3e0646f22457f28b5c4fca6654 Reviewed-on: https://chromium-review.googlesource.com/890564 Reviewed-by: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ec194ddd..9cca5aa0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -246,6 +246,25 @@ AC_ARG_WITH(rust-demangle,
AC_ARG_VAR([RUST_DEMANGLE_CFLAGS], [Compiler flags for rust-demangle])
AC_ARG_VAR([RUST_DEMANGLE_LIBS], [Linker flags for rust-demangle])
+AC_ARG_WITH(tests-as-root,
+ AS_HELP_STRING([--with-tests-as-root],
+ [Run the tests as root. Use this on platforms]
+ [like travis-ci.org that require root privileges]
+ [to use ptrace (default is no)]),
+ [case "${withval}" in
+ yes)
+ tests_as_root=true
+ ;;
+ no)
+ tests_as_root=false
+ ;;
+ *)
+ AC_MSG_ERROR(--with-tests-as-root can only be "yes" or "no")
+ ;;
+ esac],
+ [tests_as_root=false])
+AM_CONDITIONAL(TESTS_AS_ROOT, test x$tests_as_root = xtrue)
+
AC_CONFIG_FILES(m4_flatten([
breakpad.pc
breakpad-client.pc