diff options
| -rw-r--r-- | autotests/kconfig_compiler/kconfigcompiler_test.cpp | 14 | ||||
| -rw-r--r-- | autotests/kconfig_compiler/kconfigcompiler_test.h | 1 | 
2 files changed, 3 insertions, 12 deletions
| diff --git a/autotests/kconfig_compiler/kconfigcompiler_test.cpp b/autotests/kconfig_compiler/kconfigcompiler_test.cpp index 48192f5e..fcefcb68 100644 --- a/autotests/kconfig_compiler/kconfigcompiler_test.cpp +++ b/autotests/kconfig_compiler/kconfigcompiler_test.cpp @@ -78,11 +78,8 @@ static CompilerTestSet willFailCases = {  void KConfigCompiler_Test::initTestCase()  {      m_diffExe = QStandardPaths::findExecutable("diff"); -    if (!m_diffExe.isEmpty()) { -        m_diff.setFileName(QDir::currentPath() + QLatin1String("/kconfigcompiler_test_differences.diff")); -        if (m_diff.exists()) { -            m_diff.remove(); -        } +    if (m_diffExe.isEmpty()) { +        qDebug() << "diff command not found, detailed info on comparison failure will not be available.";      }  } @@ -155,11 +152,6 @@ void KConfigCompiler_Test::appendFileDiff(const QString &oldFile, const QString      if (m_diffExe.isEmpty()) {          return;      } -    if (!m_diff.isOpen()) { -        if (!m_diff.open(QIODevice::WriteOnly)) { -            return; -        } -    }      QStringList args;      args << "-u"; @@ -172,6 +164,6 @@ void KConfigCompiler_Test::appendFileDiff(const QString &oldFile, const QString      process.waitForFinished();      if (process.exitCode() == 1) {          QByteArray out = process.readAllStandardOutput(); -        m_diff.write(out); +        qDebug() << '\n' << out;      }  } diff --git a/autotests/kconfig_compiler/kconfigcompiler_test.h b/autotests/kconfig_compiler/kconfigcompiler_test.h index 940044a8..3777eaa7 100644 --- a/autotests/kconfig_compiler/kconfigcompiler_test.h +++ b/autotests/kconfig_compiler/kconfigcompiler_test.h @@ -35,7 +35,6 @@ private:      void appendFileDiff(const QString &oldFile, const QString &newFile);      QString m_diffExe; -    QFile m_diff;  };  #endif | 
