[fpc-devel] FPCUnit problem - do we fix or rewrite?

2009-05-19 Thread Graeme Geldenhuys
Hi, I use FPCUnit extensively at work and in open source projects like tiOPF, but I hit a bit of a snag - actually a bug in FPCUnit which causes many tests to fail for the wrong reasons. Here is one such case - in the tiOPF project many database tests fail do to Setup Once issues:

[fpc-devel] Re: FPCUnit problem - do we fix or rewrite?

2009-05-19 Thread Graeme Geldenhuys
 * DUnit2 (hosted in the tiOPF code repository and written by the late Peter McNab) has some major improvements over the existing DUnit. Do we incorporate/port that, or merge the DUnit2 code into a new testing framework that is FPC and Delphi compatible? For those that don't know about

[fpc-devel] Problems using a new ld-version

2009-05-19 Thread Joost van der Sluis
Hi all, On Fedora 11 there are some issues with the ld-version. First of all it's impossible to cycle the compiler using the --build-id flag, because it generates different id's for each run, so that ppc3 and ppcx64 will always differ. I'm trying to fix this. But another issue is that it always

Re: [fpc-devel] FPCUnit problem - do we fix or rewrite?

2009-05-19 Thread Michael Van Canneyt
On Tue, 19 May 2009, Graeme Geldenhuys wrote: Hi, I use FPCUnit extensively at work and in open source projects like tiOPF, but I hit a bit of a snag - actually a bug in FPCUnit which causes many tests to fail for the wrong reasons. Here is one such case - in the tiOPF project many database

Re: [fpc-devel] Problems using a new ld-version

2009-05-19 Thread Jonas Maebe
On 19 May 2009, at 14:04, Joost van der Sluis wrote: But another issue is that it always complains while compiling: /usr/bin/ld: warning: link.res contains output sections; did you forget -T? This is a new warning that was added to ld. What does it mean? Does fpc something special with

Re: [fpc-devel] FPCUnit problem - do we fix or rewrite?

2009-05-19 Thread Jonas Maebe
On 19 May 2009, at 14:06, Michael Van Canneyt wrote: I'm afraid I have seriously bad experiences with interfaces in FPC How so? I'm not aware of any outstanding bugs with interfaces in FPC. Even the compiler uses them now (only for whole-program optimization though, so usually you won't

Re: [fpc-devel] FPCUnit problem - do we fix or rewrite?

2009-05-19 Thread Graeme Geldenhuys
On Tue, May 19, 2009 at 1:41 PM, Marco van de Voort wrote: Is it FPC license compatible? DUnit always had the problem it was MPL. Umm, I had a look and the code is a fork of the original DUnit, so DUnit2 still falls under the MPL license. Regards, - Graeme -

Re: [fpc-devel] FPCUnit problem - do we fix or rewrite?

2009-05-19 Thread Graeme Geldenhuys
On Tue, May 19, 2009 at 2:06 PM, Michael Van Canneyt mich...@freepascal.org wrote: For me, a rewrite is the preferred option. OK, could you then please list all the things that bug you in the current FPCUnit, so we don't duplicate the issues. It should not affect thim, this should be a

Re: [fpc-devel] FPCUnit problem - do we fix or rewrite?

2009-05-19 Thread Michael Van Canneyt
On Tue, 19 May 2009, Jonas Maebe wrote: On 19 May 2009, at 14:06, Michael Van Canneyt wrote: I'm afraid I have seriously bad experiences with interfaces in FPC How so? I'm not aware of any outstanding bugs with interfaces in FPC. Even the compiler uses them now (only for whole-program

Re: [fpc-devel] FPCUnit problem - do we fix or rewrite?

2009-05-19 Thread Jonas Maebe
On 19 May 2009, at 14:53, Michael Van Canneyt wrote: On Tue, 19 May 2009, Jonas Maebe wrote: On 19 May 2009, at 14:06, Michael Van Canneyt wrote: I'm afraid I have seriously bad experiences with interfaces in FPC How so? I'm not aware of any outstanding bugs with interfaces in FPC.

Re: [fpc-devel] FPCUnit problem - do we fix or rewrite?

2009-05-19 Thread Dean Zobec
Graeme Geldenhuys pravi: Hi, I use FPCUnit extensively at work and in open source projects like tiOPF, but I hit a bit of a snag - actually a bug in FPCUnit which causes many tests to fail for the wrong reasons. Here is one such case - in the tiOPF project many database tests fail do to

Re: [fpc-devel] FPCUnit problem - do we fix or rewrite?

2009-05-19 Thread Michael Van Canneyt
On Tue, 19 May 2009, Jonas Maebe wrote: On 19 May 2009, at 14:53, Michael Van Canneyt wrote: On Tue, 19 May 2009, Jonas Maebe wrote: On 19 May 2009, at 14:06, Michael Van Canneyt wrote: I'm afraid I have seriously bad experiences with interfaces in FPC How so? I'm not aware of any

Re: [fpc-devel] FPCUnit problem - do we fix or rewrite?

2009-05-19 Thread Graeme Geldenhuys
On Tue, May 19, 2009 at 2:53 PM, Michael Van Canneyt wrote: http://bugs.freepascal.org/view.php?id=12778 Indeed, that is a very handy feature of using interfaces. I'm glad you mentioned it, otherwise I was going to have some issues with my tiOPF MVP implementation, which I planed on being

Re: [fpc-devel] FPCUnit problem - do we fix or rewrite?

2009-05-19 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: I'm afraid I have seriously bad experiences with interfaces in FPC How so? I'm not aware of any outstanding bugs with interfaces in FPC. Even the compiler uses them now (only for whole-program optimization though, so usually you won't test

Re: [fpc-devel] Problems using a new ld-version

2009-05-19 Thread Joost van der Sluis
Op dinsdag 19-05-2009 om 14:42 uur [tijdzone +0200], schreef Jonas Maebe: On 19 May 2009, at 14:04, Joost van der Sluis wrote: But another issue is that it always complains while compiling: /usr/bin/ld: warning: link.res contains output sections; did you forget -T? This is a new

Re: [fpc-devel] FPCUnit problem - do we fix or rewrite?

2009-05-19 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: Well, e.g. http://bugs.freepascal.org/view.php?id=12778 More a delegation problem. Together with 8951 and the pretty old 4842 Another point was trying to get the Mozilla API working. All code works in Delphi, but fails horribly in FPC.

Re: [fpc-devel] Problems using a new ld-version

2009-05-19 Thread Marco van de Voort
In our previous episode, Joost van der Sluis said: way. The warning was added because you seldom want to append your own linker script to the default one. However, I don't know whether it's intentional or not that FPC does not override ld's default internal linker script, so I'm not

Re: [fpc-devel] FPCUnit problem - do we fix or rewrite?

2009-05-19 Thread Graeme Geldenhuys
On Tue, May 19, 2009 at 3:06 PM, Dean Zobec dean.zo...@gmail.com wrote: The Setup and Teardown run only once for a set of tests goes against the philosophy of unit testing actually, as violates the priciple that all the unit tests should be independent from each other. The tests in tiOPF are

Re: [fpc-devel] Problems using a new ld-version

2009-05-19 Thread Peter Vreman
In our previous episode, Joost van der Sluis said: way. The warning was added because you seldom want to append your own linker script to the default one. However, I don't know whether it's intentional or not that FPC does not override ld's default internal linker script, so I'm not

Re: [fpc-devel] Problems using a new ld-version

2009-05-19 Thread Jonas Maebe
On 19 May 2009, at 15:45, Peter Vreman wrote: The linker scripts without the full SECTIONS details are only used to reduce the length and complexity of the commandline. This is about the linker scripts /with/ SECTIONS details. That's what the warning is about: there are SECTIONS details

[fpc-devel] Interface delegation - workaround?

2009-05-19 Thread Graeme Geldenhuys
Hi Regarding bug #12778 http://bugs.freepascal.org/view.php?id=12778 Like I said before, I am no expert in using Interfaces. But why can't I do the following (see code below), which works perfectly when I run the program. Using delegation define or usecorba define in any combination. It's

Re: [fpc-devel] Problems using a new ld-version

2009-05-19 Thread Peter Vreman
The linker scripts without the full SECTIONS details are only used to reduce the length and complexity of the commandline. This is about the linker scripts /with/ SECTIONS details. That's what the warning is about: there are SECTIONS details in a file not specified via -T, and therefore

Re: [fpc-devel] Interface delegation - workaround?

2009-05-19 Thread Michael Van Canneyt
On Tue, 19 May 2009, Graeme Geldenhuys wrote: Hi Regarding bug #12778 http://bugs.freepascal.org/view.php?id=12778 Like I said before, I am no expert in using Interfaces. But why can't I do the following (see code below), which works perfectly when I run the program. Using delegation

Re: [fpc-devel] Interface delegation - workaround?

2009-05-19 Thread Graeme Geldenhuys
On Tue, May 19, 2009 at 4:55 PM, Michael Van Canneyt mich...@freepascal.org wrote: The difference is that you have access to the THook methods/properties. THook just 'happens' also to implement the interface you need. Ah, I get it now. So with delegation of a class you get two-in-one. Access