VirtualBox

Changeset 83515 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Apr 2, 2020 4:17:03 PM (5 years ago)
Author:
vboxsync
Message:

Guest Control/Validation Kit: Adjustments for VBox < 6.0. bugref:9320

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py

    r83511 r83515  
    17891789            except Exception as oXcpt:
    17901790                if vbox.ComError.notEqual(oXcpt, vbox.ComError.VBOX_E_OBJECT_NOT_FOUND):
    1791                     reporter.errorXcpt('Error reading directory "%s":' % (sCurDir,));
     1791                    if oTstDrv.fpApiVer > 5.2:
     1792                        reporter.errorXcpt('Error reading directory "%s":' % (sCurDir,));
     1793                    else:
     1794                        # Unlike fileOpen, directoryOpen will not fail if the directory does not exist.
     1795                        reporter.maybeErrXcpt(fIsError, 'Error reading directory "%s":' % (sCurDir,));
    17921796                    fRc = False;
    17931797                else:
     
    37443748            [ tdTestFileOpen(sFile = oTestVm.pathJoin(sTempDir, 'no-such-dir', 'no-such-file')),        tdTestResultFailure() ],
    37453749        ];
    3746         atTests.extend([
    3747             # Wrong type:
    3748             [ tdTestFileOpen(sFile = self.getGuestTempDir(oTestVm)),                                tdTestResultFailure() ],
    3749             [ tdTestFileOpen(sFile = self.getGuestSystemDir(oTestVm)),                              tdTestResultFailure() ],
    3750         ]);
     3750        if self.oTstDrv.fpApiVer > 5.2: # Fixed since 6.0.
     3751            atTests.extend([
     3752                # Wrong type:
     3753                [ tdTestFileOpen(sFile = self.getGuestTempDir(oTestVm)),                                tdTestResultFailure() ],
     3754                [ tdTestFileOpen(sFile = self.getGuestSystemDir(oTestVm)),                              tdTestResultFailure() ],
     3755            ]);
    37513756        atTests.extend([
    37523757            # O_EXCL and such:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette