summaryrefslogtreecommitdiffstats
path: root/tests/auto/installer/extractarchiveoperationtest/tst_extractarchiveoperationtest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/installer/extractarchiveoperationtest/tst_extractarchiveoperationtest.cpp')
-rw-r--r--tests/auto/installer/extractarchiveoperationtest/tst_extractarchiveoperationtest.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/auto/installer/extractarchiveoperationtest/tst_extractarchiveoperationtest.cpp b/tests/auto/installer/extractarchiveoperationtest/tst_extractarchiveoperationtest.cpp
index 896f60240..8fb613af2 100644
--- a/tests/auto/installer/extractarchiveoperationtest/tst_extractarchiveoperationtest.cpp
+++ b/tests/auto/installer/extractarchiveoperationtest/tst_extractarchiveoperationtest.cpp
@@ -53,20 +53,21 @@ private slots:
void testMissingArguments()
{
- ExtractArchiveOperation op;
+ ExtractArchiveOperation op(0);
QVERIFY(op.testOperation());
QVERIFY(!op.performOperation());
//QVERIFY(!op.undoOperation()); Can't test for failure as we run into Q_ASSERT
QCOMPARE(UpdateOperation::Error(op.error()), UpdateOperation::InvalidArguments);
- QCOMPARE(op.errorString(), QString("Invalid arguments in Extract: 0 arguments given, exactly 2 expected."));
+ QCOMPARE(op.errorString(), QString("Invalid arguments in Extract: "
+ "0 arguments given, exactly 2 arguments expected."));
}
void testExtractOperationValidFile()
{
- ExtractArchiveOperation op;
+ ExtractArchiveOperation op(0);
op.setArguments(QStringList() << ":///data/valid.7z" << QDir::tempPath());
QVERIFY(op.testOperation());
@@ -76,7 +77,7 @@ private slots:
void testExtractOperationInvalidFile()
{
- ExtractArchiveOperation op;
+ ExtractArchiveOperation op(0);
op.setArguments(QStringList() << ":///data/invalid.7z" << QDir::tempPath());
QVERIFY(op.testOperation());
@@ -84,7 +85,8 @@ private slots:
QVERIFY(op.undoOperation());
QCOMPARE(UpdateOperation::Error(op.error()), UpdateOperation::UserDefinedError);
- QCOMPARE(op.errorString(), QString("Error while extracting ':///data/invalid.7z': Could not open archive"));
+ QCOMPARE(op.errorString(), QString("Error while extracting archive \":///data/invalid.7z\": "
+ "Cannot open archive \":///data/invalid.7z\"."));
}
};