Index: /trunk/src/VBox/ValidationKit/testdriver/vbox.py
===================================================================
--- /trunk/src/VBox/ValidationKit/testdriver/vbox.py	(revision 55817)
+++ /trunk/src/VBox/ValidationKit/testdriver/vbox.py	(revision 55818)
@@ -9,5 +9,5 @@
 __copyright__ = \
 """
-Copyright (C) 2010-2014 Oracle Corporation
+Copyright (C) 2010-2015 Oracle Corporation
 
 This file is part of VirtualBox Open Source Edition (OSE), as
@@ -1781,5 +1781,8 @@
         else:
             reporter.log("  Session PID:        %u (%#x)" % (oVM.sessionPid, oVM.sessionPid));
-        reporter.log("  Session Type:       %s" % (oVM.sessionType));
+        if self.fpApiVer >= 5.0:
+            reporter.log("  Session Name:       %s" % (oVM.sessionName));
+        else:
+            reporter.log("  Session Name:       %s" % (oVM.sessionType));
         reporter.log("  CPUs:               %s" % (oVM.CPUCount));
         reporter.log("  RAM:                %sMB" % (oVM.memorySize));
@@ -2220,5 +2223,8 @@
         try:
             eCurState =             oVM.sessionState;
-            sCurType  = sOrgType  = oVM.sessionType;
+            if self.fpApiVer >= 5.0:
+                sCurName  = sOrgName  = oVM.sessionName;
+            else:
+                sCurName  = sOrgName  = oVM.sessionType;
             if self.fpApiVer >= 4.2:
                 iCurPid   = iOrgPid   = oVM.sessionPID;
@@ -2234,6 +2240,6 @@
         msStart = base.timestampMilli();
         while iCurPid  == iOrgPid \
-          and sCurType == sOrgType \
-          and sCurType != '' \
+          and sCurName == sOrgName \
+          and sCurName != '' \
           and base.timestampMilli() - msStart < cMsTimeout \
           and (   eCurState == vboxcon.SessionState_Unlocking \
@@ -2243,5 +2249,5 @@
             try:
                 eCurState = oVM.sessionState;
-                sCurType  = oVM.sessionType;
+                sCurName  = oVM.sessionName if self.fpApiVer >= 5.0 else oVM.sessionType;
                 iCurPid   = oVM.sessionPID if self.fpApiVer >= 4.2 else oVM.sessionPid;
             except Exception, oXcpt:
