Merge lp:~gerboland/qtmir/fix-cmdline-args into lp:qtmir
| Status: | Superseded |
|---|---|
| Proposed branch: | lp:~gerboland/qtmir/fix-cmdline-args |
| Merge into: | lp:qtmir |
| Diff against target: |
502 lines (+192/-50) 19 files modified
src/modules/Unity/Application/desktopfilereader.cpp (+2/-1) src/modules/Unity/Application/mirsurfaceitem.h (+1/-1) src/modules/Unity/Application/objectlistmodel.h (+1/-1) src/platforms/mirserver/argvHelper.h (+52/-0) src/platforms/mirserver/mirserver.cpp (+24/-11) src/platforms/mirserver/mirserver.h (+1/-1) src/platforms/mirserver/mirserverintegration.cpp (+2/-2) src/platforms/mirserver/mirserverintegration.h (+1/-1) src/platforms/mirserver/plugin.cpp (+4/-8) src/platforms/mirserver/plugin.h (+1/-2) src/platforms/mirserver/qmirserver.cpp (+2/-11) src/platforms/mirserver/qmirserver.h (+1/-1) src/platforms/mirserver/qmirserver_p.h (+2/-1) tests/mirserver/ArgvHelper/CMakeLists.txt (+18/-0) tests/mirserver/ArgvHelper/argvHelper_test.cpp (+72/-0) tests/mirserver/CMakeLists.txt (+1/-0) tests/modules/common/fake_mirsurface.h (+1/-3) tests/modules/common/qtmir_test.h (+3/-3) tests/modules/common/stub_scene_surface.h (+3/-3) |
| To merge this branch: | bzr merge lp:~gerboland/qtmir/fix-cmdline-args |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Daniel d'Andrada (community) | 2015-10-19 | Approve on 2015-10-30 | |
| PS Jenkins bot | continuous-integration | Needs Fixing on 2015-10-30 | |
|
Review via email:
|
|||
This proposal has been superseded by a proposal from 2015-11-17.
Commit Message
Allow Mir remove command line arguments it understands, before letting Qt process them.
| Daniel d'Andrada (dandrader) wrote : | # |
Not comfortable with the "_p" suffix in "argvHelper_p.h". We're not using this naming convention anywhere in the project. And it doesn't make much sense as mirserver is not exporting any headers in the first place, so I don't see the need for that differentiation.
| Daniel d'Andrada (dandrader) wrote : | # |
> Not comfortable with the "_p" suffix in "argvHelper_p.h". We're not using this
> naming convention anywhere in the project. And it doesn't make much sense as
> mirserver is not exporting any headers in the first place, so I don't see the
> need for that differentiation.
Biting my tongue, we do use this already. :)
| Daniel d'Andrada (dandrader) wrote : | # |
Copy-and-paste issue in tests/mirserver
"""
* Copyright (C) 2014-2015 Canonical, Ltd.
"""
| Daniel d'Andrada (dandrader) wrote : | # |
"""
const char *filteredArgv[3] = { "-fullscreen", "-testability" };
"""
For completeness it would be interesting if you added an entry that is not present in argv.
| Gerry Boland (gerboland) wrote : | # |
> """
> const char *filteredArgv[3] = { "-fullscreen", "-testability" };
> """
>
> For completeness it would be interesting if you added an entry that is not
> present in argv.
That isn't a realistic use-case for the api, but if you really want it...
| Daniel d'Andrada (dandrader) wrote : | # |
> """
> const char *filteredArgv[3] = { "-fullscreen", "-testability" };
> """
>
> For completeness it would be interesting if you added an entry that is not
> present in argv.
And if you care about having a trailing null parameter, the following would be better form:
const char *filteredArgv[] = { "-fullscreen", "-testability", nullptr };
| Daniel d'Andrada (dandrader) wrote : | # |
> > """
> > const char *filteredArgv[3] = { "-fullscreen", "-testability" };
> > """
> >
> > For completeness it would be interesting if you added an entry that is not
> > present in argv.
>
> That isn't a realistic use-case for the api, but if you really want it...
Oh, really? Then ok, ignore me.
- 394. By Gerry Boland on 2015-10-30
-
People do not trust C standards, so explicitly null terminate arrays
- 395. By Gerry Boland on 2015-10-30
-
Fix copyright header
- 396. By Gerry Boland on 2015-10-30
-
Remove insinuation of private header: _p
| Gerry Boland (gerboland) wrote : | # |
Review comments addressed
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:396
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| Daniel d'Andrada (dandrader) wrote : | # |
"""
if (!unknownArgsFound) { // mir parsed all the arguments, so edit argv to pretend to have just argv[0]
argc = 1;
}
"""
It's worth commenting that the command_
| Daniel d'Andrada (dandrader) wrote : | # |
> """
> if (!unknownArgsFound) { // mir parsed all the arguments, so edit argv to
> pretend to have just argv[0]
> argc = 1;
> }
> """
>
> It's worth commenting that the command_
> case. I would never have guessed that. I was thinking that this was some
> redundant optimization before.
Hmmm, but unknownArgsFound serves as a hint for that. Nevermind
- 397. By Gerry Boland on 2015-11-17
-
Merge trunk
- 398. By Gerry Boland on 2015-11-17
-
Merge lp:~unity-team/qtmir/build_with_clang to pre-empt conflicts on landing
- 399. By Gerry Boland on 2015-11-20
-
Merge trunk
- 400. By Gerry Boland on 2015-12-12
-
Merge trunk
- 401. By Gerry Boland on 2015-12-12
-
Fix test fail due to assert maths error
- 402. By Gerry Boland on 2016-02-15
-
Merge trunk
- 403. By Gerry Boland on 2016-02-15
-
Fix error in previous merge

FAILED: Continuous integration, rev:393 jenkins. qa.ubuntu. com/job/ qtmir-ci/ 541/ jenkins. qa.ubuntu. com/job/ qtmir-vivid- amd64-ci/ 237/console jenkins. qa.ubuntu. com/job/ qtmir-vivid- armhf-ci/ 237/console jenkins. qa.ubuntu. com/job/ qtmir-vivid- i386-ci/ 119/console jenkins. qa.ubuntu. com/job/ qtmir-wily- amd64-ci/ 274/console jenkins. qa.ubuntu. com/job/ qtmir-wily- armhf-ci/ 274/console jenkins. qa.ubuntu. com/job/ qtmir-wily- i386-ci/ 119/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/qtmir- ci/541/ rebuild
http://