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

Re: own main function defined in C test

From: David Glasser <glasser_at_davidglasser.net>
Date: Sat, 31 May 2008 11:15:48 -0400

target-test.c is a utility used by target-test.py, I think. This is
documented in build.conf but maybe not anywhere else?

--dave

On Fri, May 30, 2008 at 8:18 PM, Neels Janosch Hofmeyr <neels_at_elego.de> wrote:
> Hi,
>
> I found a C test that defines an own main function, as opposed to
> subversion/tests/README. It takes a "list of entries to be compared" as
> argument. There is no comment about why this would be ok.
>
> Should I open an issue for this? (there appears to be none)
>
>
> subversion/tests/libsvn_subr/target-test.c
>
> /*
> * target-test.c -- test the target condensing function
> [...]
> */
>
> #define APR_WANT_STDIO
> #include <apr_want.h>
> #include <apr_general.h>
>
> #include "svn_cmdline.h"
> #include "svn_pools.h"
> #include "svn_path.h"
> #include "svn_utf.h"
> #include "svn_error.h"
>
> int main(int argc, char **argv)
> {
> apr_pool_t *pool;
> svn_error_t *err;
> apr_array_header_t *targets;
> apr_array_header_t *condensed_targets;
> const char *common_path = 0;
> const char *common_path2 = 0;
> int i;
>
> if (argc < 2) {
> fprintf(stderr, "USAGE: %s <list of entries to be compared>\n",
> argv[0]);
> return EXIT_FAILURE;
> }
>
> /* Initialize the app. */
> if (svn_cmdline_init("target-test", stderr) != EXIT_SUCCESS)
> return EXIT_FAILURE;
> [...]
>
> --
> Neels Hofmeyr -- elego Software Solutions GmbH
> Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
> phone: +49 30 23458696 mobile: +49 177 2345869 fax: +49 30 23458695
> http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
> Handelsreg: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
>
>
>

-- 
David Glasser | glasser@davidglasser.net | http://www.davidglasser.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-05-31 17:16:13 CEST

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