This is an automated email from the git hooks/post-receive script.

mehdi pushed a commit to branch patch-queue/master
in repository ocaml-extunix.

commit b440a5bdea3feef4d21344652e2c381af56415d2
Author: Stephane Glondu <st...@glondu.net>
Date:   Thu Aug 25 09:14:40 2011 +0200

    Add possibility to disable execinfo test through environment
    
    It fails on armel because of [1] and on powerpc because of [2].
    
    [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637360
    [2] http://caml.inria.fr/mantis/view.php?id=5334
    
    upstream provides an option --disable-execinfo, but this is not really
    useful, it is only accepted by src/discover.ml, which runs as
    PostConfCommand.
    
    Bug: 
https://forge.ocamlcore.org/tracker/index.php?func=detail&aid=1288&group_id=175&atid=782
    Signed-off-by: Stephane Glondu <st...@glondu.net>
---
 test/test.ml | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/test/test.ml b/test/test.ml
index c3b3a71..a3d5262 100644
--- a/test/test.ml
+++ b/test/test.ml
@@ -553,7 +553,7 @@ let () =
   let wrap test =
     with_unix_error (fun () -> test (); Gc.compact ())
   in
-  let tests = ("tests" >::: [
+  let tests = ("tests" >::: ([
     "eventfd" >:: test_eventfd;
     "uname" >:: test_uname;
     "fadvise" >:: test_fadvise;
@@ -564,7 +564,10 @@ let () =
     "resource" >::: test_resource;
     "strtime" >:: test_strtime;
     "pts" >:: test_pts;
-    "execinfo" >:: test_execinfo;
+  ] @ (
+    try let _ = Sys.getenv "DISABLE_EXECINFO" in []
+    with Not_found -> ["execinfo" >:: test_execinfo]
+  ) @ [
     "statvfs" >:: test_statvfs;
     "setenv" >:: test_setenv;
     "mkdtemp" >:: test_mkdtemp;
@@ -582,5 +585,5 @@ let () =
     "memalign" >:: test_memalign;
     "sockopt" >:: test_sockopt;
     "sendmsg_bin" >:: test_sendmsg_bin;
-]) in
+])) in
   ignore (run_test_tt_main (test_decorate wrap tests))

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-ocaml-maint/packages/ocaml-extunix.git

_______________________________________________
Pkg-ocaml-maint-commits mailing list
Pkg-ocaml-maint-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits

Reply via email to