You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by bl...@apache.org on 2010/12/27 21:43:02 UTC
svn commit: r1053174 -
/subversion/trunk/subversion/tests/libsvn_subr/error-test.c
Author: blair
Date: Mon Dec 27 20:43:02 2010
New Revision: 1053174
URL: http://svn.apache.org/viewvc?rev=1053174&view=rev
Log:
Follow up to 1053140, use SVN_TEST_ASSERT() instead of
SVN_ERR_ASSERT() so a unit test failure doesn't cause a core dump.
Suggested by: danielsh
* subversion/tests/libsvn_subr/error-test.c
(test_error_purge_tracing):
s/SVN_ERR_ASSERT/SVN_TEST_ASSERT/g.
Modified:
subversion/trunk/subversion/tests/libsvn_subr/error-test.c
Modified: subversion/trunk/subversion/tests/libsvn_subr/error-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_subr/error-test.c?rev=1053174&r1=1053173&r2=1053174&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/error-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/error-test.c Mon Dec 27 20:43:02 2010
@@ -149,16 +149,16 @@ test_error_purge_tracing(apr_pool_t *poo
/* The returned error is only safe to clear if this assertion
holds, otherwise it has the same pool as the original
error. */
- SVN_ERR_ASSERT(err_copy.pool != err2_copy.pool);
+ SVN_TEST_ASSERT(err_copy.pool != err2_copy.pool);
svn_error_clear(err2);
- SVN_ERR_ASSERT(SVN_ERR_ASSERTION_FAIL == err2_copy.apr_err);
+ SVN_TEST_ASSERT(SVN_ERR_ASSERTION_FAIL == err2_copy.apr_err);
}
else
{
svn_error_clear(err);
- SVN_ERR_ASSERT(err2);
+ SVN_TEST_ASSERT(err2);
}
}
#endif