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

Re: depth-test.py failing

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Mon, 28 Oct 2013 18:27:39 +0000

Branko Čibej <brane_at_wandisco.com> writes:

>> We should write a regression test for out SQLite wrapper code with a
>> statement that has a successful step before a failed step. Does that
>> mean it has to be a SELECT? If so, how do we get it to fail after a
>> successful step? Could we use a scalar function to do that sort of
>> thing?
>
> Maybe just try to run the tests with SQLite 3.7.12 ... worked like a
> charm for me to reproduce this error. Of course, I still have no idea
> whatsoever why the step failed, the error message isn't very informative.

3.7.12 doesn't fail in my Linux box. I added a regression test for
svn_sqlite__reset using a scalar function but I'm not sure how much it
really tests as I could not get it to fail. By experiment I see that
the sqlite3_reset call after a failed sqlite3_step call returns the same
error as the the failed sqlite3_step, but it also does the reset so a
second sqlite3_reset call doesn't return the error.

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2013-10-28 19:29:36 CET

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