Commit a4fb6d35 authored by Martin Kampas's avatar Martin Kampas

Fix runtime errors in debug mode

parent f7933269
......@@ -147,7 +147,6 @@ bool Sandbox::addWorldFiles(const QString &directory, QDir::Filters filters,
Q_ASSERT(!directory.contains("/./") && !directory.endsWith("/.")
&& !directory.contains("/../") && !directory.endsWith("/..")
&& !directory.contains("//"));
Q_ASSERT_X(!(m_scopes & ChildProcesses), Q_FUNC_INFO, "Unimplemented case!");
if (!prepare()){
return false;
......
......@@ -89,7 +89,7 @@ QString SsuVariables::resolveVariable(QString variable, QHash<QString, QString>
// find the operator who's after your colon
QChar op;
if (variable.length() >= magic +1)
if (variable.length() > magic +1)
op = variable.at(magic + 1);
switch(op.toAscii()){
......
......@@ -42,7 +42,9 @@ bool Process::hasError(){
}
QString Process::fmtErrorMessage(){
Q_ASSERT(hasError());
if (!hasError()){
return QString();
}
QStringList reasons;
if (m_timedOut){
......
......@@ -15,6 +15,9 @@ class Sandbox;
class RndSsuCliTest: public QObject {
Q_OBJECT
public:
RndSsuCliTest(): m_sandbox(0) {}
private slots:
void init();
void cleanup();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment