[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r936802 - /subversion/trunk/subversion/tests/svn_test_main.c

From: Greg Stein <gstein_at_gmail.com>
Date: Thu, 22 Apr 2010 13:43:15 -0400

On Thu, Apr 22, 2010 at 08:03, <stsp_at_apache.org> wrote:
> 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.

You're not supposed to use SVN_ERR_ASSERT for test conditions. Those
should continue to validate assumptions scattered throughout our code.

For *testing*, you should be using SVN_TEST_ASSERT() and
SVN_TEST_STRING_ASSERT(), found in tests/svn_test.h.

>...

Cheers,
-g
Received on 2010-04-22 19:43:44 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.