Bug 396867 - crash test cannot be run without an installed drkonqi package
Summary: crash test cannot be run without an installed drkonqi package
Status: RESOLVED FIXED
Alias: None
Product: drkonqi
Classification: Applications
Component: general (show other bugs)
Version: 5.13.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks: 373932
  Show dependency treegraph
 
Reported: 2018-07-26 07:49 UTC by Ralf Habacker
Modified: 2019-06-14 13:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Habacker 2018-07-26 07:49:31 UTC
The crash test app inside drkonqi source dir is intended to test drkonqi functionality. On running this test app drkonqi tries to find the currently selected debugger for generating backtraces by calling QStandardPaths::locate(QStandardPaths::DataLocation) for this detection (see https://cgit.kde.org/drkonqi.git/tree/src/debugger.cpp#n131

Unfortunally it seems that QStandardPaths::DataLocation cannot be set to a custom dir by an environment variable (see https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/io/qstandardpaths_unix.cpp#n320 and https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/io/qstandardpaths_unix.cpp#n74), which is required to be able to run drkonqi from a recent build or a temporary install location.
Comment 1 Ralf Habacker 2018-07-26 08:26:30 UTC
The Qt documentation mentiones a specific test mode (see http://doc.qt.io/qt-5/qstandardpaths.html#setTestModeEnabled), which is intended to be used by auto tests.
Unfortunally this does not help for this case, where not the autotest need to be in test mode, but another executable, normally not running in test mode.