[prev in list] [next in list] [prev in thread] [next in thread]
List: subversion-dev
Subject: Re: own main function defined in C test
From: "David Glasser" <glasser () davidglasser ! net>
Date: 2008-05-31 15:15:48
Message-ID: 1ea387f60805310815r15727412yc0d5677c3d266b4e () mail ! gmail ! com
[Download RAW message or body]
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@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@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic