subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r936802 - /subversion/trunk/subversion/tests/svn_test_main.c
Date Thu, 22 Apr 2010 12:03:40 GMT
Author: stsp
Date: Thu Apr 22 12:03:40 2010
New Revision: 936802

URL: http://svn.apache.org/viewvc?rev=936802&view=rev
Log:
* subversion/tests/svn_test_main.c
  (main): Override the default malfunction handler to avoid abort()
   in the C tests. If SVN_ERR_ASSERT() fails in a C test, we should
   treat this as XFAIL rather than dumping core.

Modified:
    subversion/trunk/subversion/tests/svn_test_main.c

Modified: subversion/trunk/subversion/tests/svn_test_main.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/svn_test_main.c?rev=936802&r1=936801&r2=936802&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/svn_test_main.c (original)
+++ subversion/trunk/subversion/tests/svn_test_main.c Thu Apr 22 12:03:40 2010
@@ -383,6 +383,10 @@ main(int argc, const char *argv[])
   cleanup_pool = svn_pool_create(pool);
   test_pool = svn_pool_create(pool);
 
+  /* Make sure we don't abort() on SVN_ERR_ASSERT() failures,
+   * to allow for clean XFAIL tests. */
+  svn_error_set_malfunction_handler(svn_error_raise_on_malfunction);
+
   if (argc >= 2)  /* notice command-line arguments */
     {
       if (! strcmp(argv[1], "list") || list_mode)



Mime
View raw message