VirtualBox

Changeset 84736 in vbox


Ignore:
Timestamp:
Jun 9, 2020 11:27:56 AM (5 years ago)
Author:
vboxsync
Message:

Validation Kit/tdAddGuestCtrl.py: More Windows-specific tweaking wrt long arguments testing.

File:
1 edited

Legend:

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

    r84734 r84736  
    29582958                            tdTestResultExec(fRc = True) ]);
    29592959
    2960         # Test very long arguments.
    2961         # Old(er) Windows OSes tend to crash in cmd.exe, so skip this.
     2960        # Test very long arguments. Be careful when tweaking this to not break the tests.
    29622961        # Regarding paths:
    29632962        # - We have RTPATH_BIG_MAX (64K)
     
    29652964        # - On Windows, each path component must not be longer than MAX_PATH (260), see
    29662965        #   https://docs.microsoft.com/en-us/windows/win32/fileio/filesystem-functionality-comparison#limits
     2966        #
     2967        # Old(er) Windows OSes tend to crash in cmd.exe, so skip this on these OSes.
    29672968        if  self.oTstDrv.fpApiVer >= 6.1 \
    29682969        and oTestVm.sKind not in ('WindowsNT4', 'Windows2000', 'WindowsXP', 'Windows2003'):
     
    29822983
    29832984                # Append a random number of arguments with random length.
    2984                 for _ in xrange(0, self.oTestFiles.oRandom.randrange(1, 16)):
     2985                for _ in xrange(0, self.oTestFiles.oRandom.randrange(1, 64)):
    29852986                    asArgs.append(''.join(random.choice(string.lowercase)
    2986                                           for _ in range(self.oTestFiles.oRandom.randrange(1, 16 * 1024))));
     2987                                          for _ in range(self.oTestFiles.oRandom.randrange(1, 255))));
    29872988
    29882989                asArgs.append(sEndMarker);
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