Skip to content

autotests: Fix testDbusInterface with Qt 6 build

Vlad Zahorodnii requested to merge work/zzag/test-dbus-interface-qt6 into master

The test fails because of type mismatch between QString and QByteArray


It would be great if somebody could confirm that

-        if (char *dot = strchr(host.data(), '.')) {
-            *dot = '\0';
-            if (host == lowerHostName) {
+        if (int index = host.indexOf('.'); index != -1) {
+            if (QStringView(host).left(index) == lowerHostName) {

is correct, I'm confused by what that code tries to achieve

Merge request reports