VirtualBox

Ignore:
Timestamp:
Mar 16, 2020 9:12:59 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
136462
Message:

Guest Control/Main: Added flags validation for GuestSession::fileCopy[From|To]Guest() + GuestSession::directoryCopy[From|To]Guest(), enabled testcases for it by default. ​bugref:9135

File:
1 edited

Legend:

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

    r82968 r83295  
    43904390            [ tdTestCopyToFile(sDst = oTestVm.pathJoin(sScratchGst, 'dstfile')), tdTestResultFailure() ],
    43914391            [ tdTestCopyToDir( sDst = sScratchGst), tdTestResultFailure() ],
     4392            # Both given, but invalid flags.
     4393            [ tdTestCopyToFile(sSrc = sBigFileHst, sDst = sScratchGst, afFlags = [ 0x40000000] ), tdTestResultFailure() ],
     4394            [ tdTestCopyToDir( sSrc = sScratchEmptyDirHst, sDst = sScratchGst, afFlags = [ 0x40000000] ),
     4395              tdTestResultFailure() ],
    43924396        ];
    4393         if not self.fSkipKnownBugs:
    4394             atTests.extend([
    4395                 ## @todo Apparently Main doesn't check the flags, so the first test succeeds.
    4396                 # Both given, but invalid flags.
    4397                 [ tdTestCopyToFile(sSrc = sBigFileHst, sDst = sScratchGst, afFlags = [ 0x40000000] ), tdTestResultFailure() ],
    4398                 [ tdTestCopyToDir( sSrc = sScratchEmptyDirHst, sDst = sScratchGst, afFlags = [ 0x40000000] ),
    4399                   tdTestResultFailure() ],
    4400             ]);
    44014397        atTests.extend([
    44024398            # Non-existing source, but no destination:
     
    45774573            [ tdTestCopyFromFile(oSrc = oExistingFileGst), tdTestResultFailure() ],
    45784574            [ tdTestCopyFromDir( sSrc = self.oTestFiles.oManyDir.sPath), tdTestResultFailure() ],
    4579             ##
    4580             ## @todo main isn't validating flags, so these theses will succeed.
    4581             ##
    4582             ## Invalid flags:
    4583             #[ tdTestCopyFromFile(oSrc = oExistingFileGst, sDst = os.path.join(sScratchHst, 'somefile'), afFlags = [0x40000000]),
    4584             #  tdTestResultFailure() ],
    4585             #[ tdTestCopyFromDir( oSrc = oEmptyDirGst, sDst = os.path.join(sScratchHst, 'somedir'),  afFlags = [ 0x40000000] ),
    4586             #  tdTestResultFailure() ],
     4575            # Invalid flags:
     4576            [ tdTestCopyFromFile(oSrc = oExistingFileGst, sDst = os.path.join(sScratchHst, 'somefile'), afFlags = [0x40000000]),
     4577              tdTestResultFailure() ],
     4578            [ tdTestCopyFromDir( oSrc = oEmptyDirGst, sDst = os.path.join(sScratchHst, 'somedir'),  afFlags = [ 0x40000000] ),
     4579              tdTestResultFailure() ],
    45874580            # Non-existing sources:
    45884581            [ tdTestCopyFromFile(sSrc = oTestVm.pathJoin(self.oTestFiles.oRoot.sPath, 'no-such-file-or-directory'),
Note: See TracChangeset for help on using the changeset viewer.

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