diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2021-10-14 15:04:23 +0300 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2021-10-19 11:18:31 +0000 |
commit | e062d5866fdcc481772d577c3c9e4261916cff43 (patch) | |
tree | 0d1e96bc872c3aae3e8d7c6fb720ca9ec7c5eb04 /tests/auto | |
parent | cea845f2a81299232fcec7c07203df4816ac893b (diff) |
pkgconfig: Merge packages and broken packages
This is required for the ongoing patch that merges the
dependencies on the pkgconfig level - a valid package
may change it's type to broken if it has unsatisfied
dependencies.
Change-Id: I21e6a214d8524fb95e6b837604ae6b7f32360d4f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/pkgconfig/tst_pkgconfig.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/pkgconfig/tst_pkgconfig.cpp b/tests/auto/pkgconfig/tst_pkgconfig.cpp index 53dc696ed..96a70d199 100644 --- a/tests/auto/pkgconfig/tst_pkgconfig.cpp +++ b/tests/auto/pkgconfig/tst_pkgconfig.cpp @@ -74,7 +74,9 @@ void TestPkgConfig::pkgConfig() const auto json = QJsonDocument::fromJson(jsonFile.readAll(), &error).toVariant().toMap(); QCOMPARE(error.error, QJsonParseError::NoError); - const auto &package = pkgConfig.getPackage(fileName.toStdString()); + const auto &packageOr = pkgConfig.getPackage(fileName.toStdString()); + QVERIFY(packageOr.isValid()); + const auto &package = packageOr.asPackage(); QCOMPARE(QString::fromStdString(package.baseFileName), fileName); QCOMPARE(QString::fromStdString(package.name), json.value("Name").toString()); QCOMPARE(QString::fromStdString(package.description), json.value("Description").toString()); |