VirtualBox

Changeset 84244 in vbox


Ignore:
Timestamp:
May 11, 2020 10:04:38 AM (5 years ago)
Author:
vboxsync
Message:

Validation Kit/tdAddGuestCtrl: Added tests for long(er) command lines. bugref:9320

File:
1 edited

Legend:

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

    r84220 r84244  
    29942994                            tdTestResultExec(fRc = True) ]);
    29952995
     2996        # Test very long arguments.
     2997        if self.oTstDrv.fpApiVer >= 6.1:
     2998            if oTestVm.isWindows() \
     2999            or oTestVm.isOS2():
     3000                sEcho = sShell;
     3001            else:
     3002                sEcho       = "/bin/echo";
     3003                # The suffix acts as an indicator / beacon to see if the actual (random) args were received fully.
     3004                sEchoSuffix = "-n";
     3005
     3006            for _ in xrange(0, 16):
     3007                ## @todo Check limits; on Ubuntu with 256KB IPRT returns VERR_NOT_IMPLEMENTED.
     3008                atExec.append([ tdTestExec(sCmd = sEcho,
     3009                                           asArgs = [ sEcho, sShellOpt,
     3010                                                      self.oTestFiles.generateFilenameEx(128 * 1024, 2048), sEchoSuffix ],
     3011                                           afFlags = [ vboxcon.ProcessCreateFlag_WaitForStdOut,
     3012                                                       vboxcon.ProcessCreateFlag_WaitForStdErr ]),
     3013                                tdTestResultExec(fRc = True) ]);
     3014
    29963015        # Build up the final test array for the first batch.
    29973016        atTests = atInvalid + atExec;
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