Files
RedBear-OS/local/recipes/kde/kf6-kwallet/source/tests/kwalletd/kwalletpath.cpp
T
vasilito edb68153e3 milestone: 22 KF6 enabled, blake3 placeholders removed, text-login fixed
- kf6-knewstuff/kwallet: removed all-zero blake3 placeholders
- CONSOLE-TO-KDE-DESKTOP-PLAN.md: 20→22 KF6 enabled count
- BOOT-PROCESS-IMPROVEMENT-PLAN.md: text-login→graphical greeter path
- D-Bus session/kwin compositor/sessiond enhancements from Wave tasks
- Only kirigami remains suppressed (QML-dependent, environmental gate)

Zero warnings. 24 commits total.
2026-04-29 14:48:47 +01:00

39 lines
899 B
C++

#include "kwalletpath.h"
#include <QTest>
#include <QTextStream>
#include <KAboutData>
#include <QDBusConnection>
#include <QDBusConnectionInterface>
#include <kwallet.h>
static QTextStream _out(stdout, QIODevice::WriteOnly);
void KWalletPathTest::init()
{
if (!qEnvironmentVariableIsSet("DISPLAY")) {
QSKIP("$DISPLAY is not set. These tests cannot be done without a graphical system.");
}
}
void KWalletPathTest::openWallet()
{
_out << "About to ask for wallet /tmp/test.kwl sync\n";
KWallet::Wallet *wallet = KWallet::Wallet::openWallet(QStringLiteral("/tmp/test.kwl"), 0, KWallet::Wallet::Path);
QVERIFY(wallet != nullptr);
_out << "Got path wallet: " << (wallet != nullptr) << '\n';
if (wallet) {
_out << "Closing wallet\n";
delete wallet;
}
_out.flush();
}
QTEST_GUILESS_MAIN(KWalletPathTest)
#include "moc_kwalletpath.cpp"