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

Re: Unit test

From: Julian Foad <julian.foad_at_wandisco.com>
Date: Wed, 24 Feb 2010 10:03:44 +0000

Vadim Chekan wrote:
> I'm working on a patch for svn but I'm not sure either it passes unit tests.
> When I run it as "make bdbcheck", fs-test fails test #23: create and
> modify medium file.
> But when I "cd subversion/tests/libsvn_fs && fs-test", then it passes
> all rules (well, with one18th XFAIL).
> So the question is, what am I doing wrong?

Hi Vadim.

By guess-work, the only things I can think of to explain the difference
are:

  - the test is being run with different options when you run it in the
two different ways;

  - the test is picking up different libraries when you run it in the
two different ways;

If you want to post your patch and the exact commands you used to run
the tests (in both ways), and say what branch and revision of svn source
code you are patching, then I could try it and perhaps see the problem.

- Julian

> Vadim.
>
> P.S. fail error:
> FAIL: fs-test 23: create and modify medium file
> ../subversion/tests/libsvn_fs/fs-test.c:3593: (apr_err=160004)
> ../subversion/libsvn_fs_base/tree.c:1733: (apr_err=160004)
> ../subversion/libsvn_fs_base/tree.c:1862: (apr_err=160004)
> ../subversion/libsvn_fs_base/tree.c:1618: (apr_err=160004)
> ../subversion/libsvn_fs_base/dag.c:1528: (apr_err=160004)
> ../subversion/libsvn_fs_base/reps-strings.c:1574: (apr_err=160004)
> ../subversion/libsvn_delta/text_delta.c:333: (apr_err=160004)
> ../subversion/libsvn_fs_base/reps-strings.c:1019: (apr_err=160004)
> ../subversion/libsvn_fs_base/reps-strings.c:964: (apr_err=160004)
> svn_tests: MD5 checksum mismatch on representation '5':
> expected: f2b238a689c8faef434fb6d0577e299f
> actual: 237f5bb438769f3e29c1767f7d9988aa
>
>
Received on 2010-02-24 11:04:25 CET

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.