Re: [Development] Supporting helper functions in auto tests by providing throwing Qt Test macros

2019-04-03 Thread Mitch Curtis
> -Original Message- > From: Edward Welbourne > Sent: Wednesday, 3 April 2019 5:07 PM > To: Mitch Curtis > Cc: development@qt-project.org; Joerg Bornemann > > Subject: Re: [Development] Supporting helper functions in auto tests by > providing throwing Qt Test macros > > On 4/2/19 5:14

Re: [Development] Shadertools repo request and some words about state of graphics

2019-04-03 Thread Lars Knoll
Thanks for the update Laszlo. This is really important work towards Qt 6, and I can recommend everybody that has an interest in the graphics stack for Qt to have a look. And I support the creation of the qtshadertools repo. Gerrit admins, could you please the qt-labs repo for Laszlo? Cheers, L

Re: [Development] Supporting helper functions in auto tests by providing throwing Qt Test macros

2019-04-03 Thread Giuseppe D'Angelo via Development
Il 03/04/19 17:06, Edward Welbourne ha scritto: There is a whole world of difference between "can only be used in" and "is not recommended for use outside". The note is incorrect: if you use these macros inside a helper function, they do cause the test system to know the test has failed. They m

Re: [Development] Supporting helper functions in auto tests by providing throwing Qt Test macros

2019-04-03 Thread Edward Welbourne
On 4/2/19 5:14 PM, Mitch Curtis wrote: > >> As described in https://bugreports.qt.io/browse/QTBUG-66320, > >> currently Qt users are on their own if they want to call helper > >> functions that can fail a test. The reason is documented: > >> > >> Note: This macro can only be used in a test fun

Re: [Development] QVariant container API

2019-04-03 Thread Arnaud Clère
In your examples, you know the destination types statically so my suggestion did not seem off-topic. Cheers From: Vasily Pupkin To: Arnaud Clère > Using QVariant as an intermediate data structure is not optimal to > read/write your QList > It also prevents from directly using the QList type

Re: [Development] Supporting helper functions in auto tests by providing throwing Qt Test macros

2019-04-03 Thread Mitch Curtis
> -Original Message- > From: Development On Behalf Of > Robin Burchell > Sent: Wednesday, 3 April 2019 12:53 PM > To: development@qt-project.org > Subject: Re: [Development] Supporting helper functions in auto tests by > providing throwing Qt Test macros > > On Tue, Apr 2, 2019, at 5:17 P

Re: [Development] Supporting helper functions in auto tests by providing throwing Qt Test macros

2019-04-03 Thread Mitch Curtis
Resending to the list... > -Original Message- > From: Mitch Curtis > Sent: Wednesday, 3 April 2019 1:58 PM > To: 'Giuseppe D'Angelo' > Subject: RE: [Development] Supporting helper functions in auto tests by > providing throwing Qt Test macros > > > -Original Message- > > From: De

Re: [Development] Supporting helper functions in auto tests by providing throwing Qt Test macros

2019-04-03 Thread Robin Burchell
On Wed, Apr 3, 2019, at 1:24 PM, Giuseppe D'Angelo via Development wrote: > I may like the overall approach. However, this would imply that such > tests require exceptions / RTTI turned on inside QtTestLib / user code; > is it "OK" in the grand scheme of things? Note that testcase.prf already en

Re: [Development] Supporting helper functions in auto tests by providing throwing Qt Test macros

2019-04-03 Thread Giuseppe D'Angelo via Development
Hi, Il 02/04/19 17:14, Mitch Curtis ha scritto: Quoting the commit message here: WIP: Add _THROW variants to testlib macros This allows using Qt Test macros in helper functions, avoiding the need to write a lot of boilerplate code as seen with alternative approaches. I may lik

Re: [Development] Supporting helper functions in auto tests by providing throwing Qt Test macros

2019-04-03 Thread Robin Burchell
On Tue, Apr 2, 2019, at 5:17 PM, Mitch Curtis wrote: > Quoting the commit message here: > > WIP: Add _THROW variants to testlib macros > > This allows using Qt Test macros in helper functions, avoiding the need > to write a lot of boilerplate code as seen with alternative approaches.

Re: [Development] Supporting helper functions in auto tests by providing throwing Qt Test macros

2019-04-03 Thread Mitch Curtis
> -Original Message- > From: Edward Welbourne > Sent: Wednesday, 3 April 2019 12:07 PM > To: Joerg Bornemann ; Mitch Curtis > > Cc: development@qt-project.org > Subject: Re: [Development] Supporting helper functions in auto tests by > providing throwing Qt Test macros > > On 4/2/19 5:14 P

Re: [Development] Supporting helper functions in auto tests by providing throwing Qt Test macros

2019-04-03 Thread Edward Welbourne
On 4/2/19 5:14 PM, Mitch Curtis wrote: >> As described in https://bugreports.qt.io/browse/QTBUG-66320, currently >> Qt users are on their own if they want to call helper functions that >> can fail a test. The reason is documented: >> >> Note: This macro can only be used in a test function that

Re: [Development] Switching from create_changelog.pl to createchangelog for change log generation

2019-04-03 Thread Edward Welbourne
Alexandru Croitor (2 April 2019 14:02) >> Just to throw some wood into the fire, because it's that kind of day, >> technically we don't require Python or Go to build qtbase, yet we >> require Perl. Hence +1 for using the perl script, because we need Perl >> anyway : P I note that the createchangel

Re: [Development] QVariant container API

2019-04-03 Thread Vasily Pupkin
> Using QVariant as an intermediate data structure is not optimal to read/write your QList > It also prevents from directly using the QList type to guide the deserialization. In QBind you do not need to register types at runtime and you avoid losing data silently (instead you have static_asserts

Re: [Development] Supporting helper functions in auto tests by providing throwing Qt Test macros

2019-04-03 Thread Christian Kandeler
On Tue, 2 Apr 2019 15:14:38 + Mitch Curtis wrote: > As described in https://bugreports.qt.io/browse/QTBUG-66320, currently Qt > users are on their own if they want to call helper functions that can fail a > test. The reason is documented: > > Note: This macro can only be used in a test

[Development] HEADS UP : Qt 5.13 soft string freeze

2019-04-03 Thread Jani Heikkinen
Hi all, First beta release from Qt 5.13 is already out so it is time to start keeping translatable strings as it is. Official string freeze will be in effect Wed 10th April 2019. br, Jani ___ Development mailing list Development@qt-project.org https:

Re: [Development] Supporting helper functions in auto tests by providing throwing Qt Test macros

2019-04-03 Thread Mitch Curtis
> -Original Message- > From: Joerg Bornemann > Sent: Wednesday, 3 April 2019 9:55 AM > To: Mitch Curtis ; development@qt-project.org > Subject: Re: [Development] Supporting helper functions in auto tests by > providing throwing Qt Test macros > > On 4/2/19 5:14 PM, Mitch Curtis wrote: > >

Re: [Development] Supporting helper functions in auto tests by providing throwing Qt Test macros

2019-04-03 Thread Joerg Bornemann
On 4/2/19 5:14 PM, Mitch Curtis wrote: > As described in https://bugreports.qt.io/browse/QTBUG-66320, currently Qt > users are on their own if they want to call helper functions that can fail a > test. The reason is documented: > > Note: This macro can only be used in a test function that