Files
RedBear-OS/local/recipes/kde/kf6-kwallet/source/tests/kwalletd/kwalletsync.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

34 lines
794 B
C++

#include "kwalletsync.h"
#include <QTest>
#include <QTextStream>
#include <KAboutData>
#include <QDBusConnection>
#include <QDBusConnectionInterface>
#include <kwallet.h>
static QTextStream _out(stdout, QIODevice::WriteOnly);
void KWalletSyncTest::init()
{
if (!qEnvironmentVariableIsSet("DISPLAY")) {
QSKIP("$DISPLAY is not set. These tests cannot be done without a graphical system.");
}
}
void KWalletSyncTest::openWallet()
{
_out << "About to ask for wallet sync\n";
KWallet::Wallet *w = KWallet::Wallet::openWallet(KWallet::Wallet::NetworkWallet(), 0, KWallet::Wallet::Synchronous);
QVERIFY(w != nullptr);
_out << "Got sync wallet: " << (w != nullptr) << '\n';
_out.flush();
}
QTEST_GUILESS_MAIN(KWalletSyncTest)
#include "moc_kwalletsync.cpp"