diff --git a/tests/auto/qml/qml.pro b/tests/auto/qml/qml.pro
index 8951c55472114d63daa170fc2b890d0ca9f7c6f9..2d2fde40103361f84b7b323b57dd674ffe06151e 100644
--- a/tests/auto/qml/qml.pro
+++ b/tests/auto/qml/qml.pro
@@ -1,3 +1,6 @@
 TEMPLATE = subdirs
 
 !uikit: SUBDIRS += qmlwebsockets qmlwebsockets_compat
+
+# QTBUG-60268
+boot2qt: SUBDIRS -= qmlwebsockets_compat
diff --git a/tests/auto/websockets/websockets.pro b/tests/auto/websockets/websockets.pro
index b000229f1647fb3245ec416672c5be186e22c2c7..4b7ee4e280d9d20164ddd09f59eb726b51584b68 100644
--- a/tests/auto/websockets/websockets.pro
+++ b/tests/auto/websockets/websockets.pro
@@ -14,3 +14,6 @@ qtConfig(private_tests): SUBDIRS += \
 SUBDIRS += \
     qwebsocket \
     qwebsocketserver
+
+# QTBUG-60268
+boot2qt: SUBDIRS -= qwebsocketserver