[Mono-dev] Fwd: Tests for System.Data.OracleClient

Leszek Ciesielski skolima at gmail.com
Tue Oct 17 09:40:04 EDT 2006


On 10/17/06, Konstantin Triger <kostat at mainsoft.com> wrote:
> Hi,
>
> All the changes including DataProvider are fine. Feel free to commit.
>
> Thanks,
> Kosta
>
> -----Original Message-----
> From: Leszek Ciesielski [mailto:skolima at gmail.com]
> Sent: Tuesday, October 17, 2006 1:17 PM
> To: Konstantin Triger
> Subject: Re: [Mono-dev] Fwd: Tests for System.Data.OracleClient
>
> On 10/17/06, Leszek Ciesielski <skolima at gmail.com> wrote:
> > On 10/17/06, Konstantin Triger <kostat at mainsoft.com> wrote:
> > > Sure, any questions regarding java profile.
> > >
> > > Regards,
> > > Konstantin Triger
> > >
> > > -----Original Message-----
> > > From: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Leszek Ciesielski
> > > Sent: Tuesday, October 17, 2006 12:26 PM
> > > To: Konstantin Triger
> > > Cc: Noam Lampert; Miguel de Icaza; mono-devel-list at lists.ximian.com
> > > Subject: Re: [Mono-dev] Fwd: Tests for System.Data.OracleClient
> > >
> > > I will make this conditional, as I should probably from the start...
> > > Can I contact you with further questions I have about the tests?
> > >
> > > On 10/17/06, Konstantin Triger <kostat at mainsoft.com> wrote:
> > > > Hello Leszek,
> > > >
> > > > The tests under jvm folder fully pass in java and .Net (except those which were marked as not working up to revision 66739). So the failures are bugs in the OracleClient implementation.
> > > >
> > > > Please either revert the commit marking additional tests as 'NotWorking' or make it conditional, i.e:
> > > > #if !TARGET_JVM
> > > >         [Category("NotWorking")]
> > > > #endif
> > > >
> > > > Please be very careful in excluding tests from the testsuite since they are part of our harness. Contact me if you have any additional questions.
> > > >
> > > > Regards,
> > > > Konstantin Triger
> > > >
> > > > -----Original Message-----
> > > > From: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Leszek Ciesielski
> > > > Sent: Saturday, October 14, 2006 7:44 PM
> > > > To: mono-devel-list at lists.ximian.com
> > > > Subject: [Mono-dev] Fwd: Tests for System.Data.OracleClient
> > > >
> > > > On 9/25/06, Boris Kirzner <borisk at mainsoft.com> wrote:
> > > > > Hello Leszek
> > > > >
> > > > > The tests are regular NUnit test suite, so you should not have any
> > > > > problem running it just by adding the files to test sources file.
> > > > >
> > > > > Boris
> > > > >
> > > > > -----Original Message-----
> > > > > From: Leszek Ciesielski [mailto:skolima at gmail.com]
> > > > > Sent: Wednesday, September 13, 2006 11:34
> > > > > To: Boris Kirzner
> > > > > Subject: Tests for System.Data.OracleClient
> > > > >
> > > > > Hi,
> > > > >
> > > > > it seems to me you have maintained the jvm tests for quite a long
> > > > > time. Would it be possible to rewrite the way they are launched and
> > > > > incorporate them into main mcs testing path?
> > > > >
> > > > > Leszek Ciesielski
> > > > >
> > > >
> > > > Hi Mono,
> > > >
> > > > I have incorporated the tests from System.Data.Oracle.jvm into testing
> > > > of 'regular' OracleClient. There are hiccups, however: some tests
> > > > fail, some timeout while finalizing the tests domain, and some
> > > > segfault. I've marked those that time out or end with a segfault as
> > > > NotWorking, so they are not run. What should I do with those that
> > > > fail? For now, they are executed.
> > > >
> > > > Boris: many (almost 50% , when counting the segfaulting and timeouting
> > > > ones) of test fail. Was this expected? Or maybe this is fault of them
> > > > being meant for jvm, or I messed something up?
> > > >
> > > > What bothers me the most is that some of the segfaults are
> > > > nondeterministic - they seem to depend on the order the test are run,
> > > > or some other random factor...
> > > >
> > > > Question to the list: should/can I commit this addition?
> >
> > Ok, I have conditional ignoring ready to commit. There's also a small
> > fix for TearDown in two tests - they did break when Assert.Ignore was
> > called during test.
> >
> > Two questions:
> >
> > Is it ok to commit? (I guess #if's are, but what about change to tests?)
> >
> > Is my change in ConnectedDataProvider ok? (It was submitted earlier.
> > When connectionstring is requested I check if it is set in config, and
> > if not, call Assert.Ignore, as this means that the user did not
> > prepare the database for tests.)
> >
>
> My mistake, forgot the diff file.

Fixed. Sorry for your trouble.

Could you explain to me why sometimes JVM specific code is included
through TARGET_JVM and sometimes it is placed in separate files? In
OracleClient this seems to cause some functionality to work only in
JVM, while sharing the code would bring fixes to other profiles. Would
such a merge be possible? And if yes, what would be the caveats?



More information about the Mono-devel-list mailing list