Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: fix QCoreApplication parameters #185

Merged
merged 1 commit into from
Jan 17, 2015
Merged

tests: fix QCoreApplication parameters #185

merged 1 commit into from
Jan 17, 2015

Conversation

pinotree
Copy link
Contributor

The argument count (first parameter) is a reference, and thus must be kept alive for the whole lifetime of the QCoreApplication instance, as also the Qt apidocs say.

Also properly create a "string array" for the actual args, instead of badly casting a string to that.

This fixes sporadic crashes in this test, for example as seen for some architectures in the Debian build of 3.4.0: https://buildd.debian.org/status/logs.php?pkg=sqlitebrowser&ver=3.4.0-1 & http://buildd.debian-ports.org/status/logs.php?pkg=sqlitebrowser&ver=3.4.0-1 (click on texts in the "Result" column to see the logs).

The argument count (first parameter) is a reference, and thus must be
kept alive for the whole lifetime of the QCoreApplication instance,
as also the Qt apidocs say.

Also properly create a "string array" for the actual args, instead
of badly casting a string to that.

This fixes sporadic crashes in this test.
@MKleusberg MKleusberg added this to the 3.5 - Space Pizza Express milestone Jan 17, 2015
@MKleusberg MKleusberg added the bug Confirmed bugs or reports that are very likely to be bugs. label Jan 17, 2015
MKleusberg added a commit that referenced this pull request Jan 17, 2015
tests: fix QCoreApplication parameters
@MKleusberg MKleusberg merged commit a4d41be into sqlitebrowser:master Jan 17, 2015
@MKleusberg
Copy link
Member

Thank you very much for that pull request! Nice work tracking that error messages down to these lines of code 👍

@pinotree pinotree deleted the tests-fix-qcoreapp branch January 17, 2015 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants