VirtualBox

Changeset 99279 in vbox for trunk/src


Ignore:
Timestamp:
Apr 4, 2023 12:59:19 PM (22 months ago)
Author:
vboxsync
Message:

Guest Control/Validation Kit: Better checks for extended processCreate() API calls.

File:
1 edited

Legend:

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

    r99188 r99279  
    23202320                         limitString(oTest.aEnv),));
    23212321        try:
    2322             if self.oTstDrv.fpApiVer >= 7.1:
     2322            if self.oTstDrv.fpApiVer >= 7.1 and self.oTstDrv.uRevision >= 156485:
    23232323                oProcess = oGuestSession.processCreate(oTest.sCmd,
    23242324                                                       oTest.asArgs if self.oTstDrv.fpApiVer >= 5.0 else oTest.asArgs[1:],
     
    28892889            try:
    28902890                reporter.log2('Starting stale process #%d...' % (i));
    2891                 if self.oTstDrv.fpApiVer >= 7.1:
     2891                if self.oTstDrv.fpApiVer >= 7.1 and self.oTstDrv.uRevision >= 156485:
    28922892                    oGuestSession.processCreate(sShell,
    28932893                                                asArgs if self.oTstDrv.fpApiVer >= 5.0 else asArgs[1:],
     
    29302930                try:
    29312931                    reporter.log2('Starting non-stale process #%d...' % (i));
    2932                     if self.oTstDrv.fpApiVer >= 7.1:
     2932                    if self.oTstDrv.fpApiVer >= 7.1 and self.oTstDrv.uRevision >= 156485:
    29332933                        oCurProc = oGuestSession.processCreate(sShell, asArgs if self.oTstDrv.fpApiVer >= 5.0 else asArgs[1:],
    29342934                                                               "",         # Working directory.
     
    29882988                try:
    29892989                    reporter.log2('Starting blocking process #%d...' % (i));
    2990                     if self.oTstDrv.fpApiVer >= 7.1:
     2990                    if self.oTstDrv.fpApiVer >= 7.1 and self.oTstDrv.uRevision >= 156485:
    29912991                        oCurProc = oGuestSession.processCreate(sCmd, asArgs if self.oTstDrv.fpApiVer >= 5.0 else asArgs[1:],
    29922992                                                               "", # Working directory.
     
    34243424        afFlags = [];
    34253425        try:
    3426             if self.oTstDrv.fpApiVer >= 7.1:
     3426            if self.oTstDrv.fpApiVer >= 7.1 and self.oTstDrv.uRevision >= 156485:
    34273427                oGuestProcess = oGuestSession.processCreate(sImage,
    34283428                                                            asArgs if self.oTstDrv.fpApiVer >= 5.0 else asArgs[1:],
     
    35473547        fRc = True;
    35483548        try:
    3549             if self.oTstDrv.fpApiVer >= 7.1:
     3549            if self.oTstDrv.fpApiVer >= 7.1 and self.oTstDrv.uRevision >= 156485:
    35503550                oCurProcess = oGuestSession.processCreate(sShell, [sShell,] if self.oTstDrv.fpApiVer >= 5.0 else [],
    35513551                                                          "", # Working directory.
     
    35903590            #
    35913591            try:
    3592                 if self.oTstDrv.fpApiVer >= 7.1:
     3592                if self.oTstDrv.fpApiVer >= 7.1 and self.oTstDrv.uRevision >= 156485:
    35933593                    oCurProcess = oGuestSession.processCreate(sShell, [sShell,] if self.oTstDrv.fpApiVer >= 5.0 else [],
    35943594                                                              "", # Working directory.
     
    39163916            fUseDirList = False;
    39173917            cEntriesPerRead = random.randrange(1, 32768);
    3918             if self.oTstDrv.fpApiVer >= 7.1: # Listing directories only is available for >= VBox 7.1.
     3918            if self.oTstDrv.fpApiVer >= 7.1 and self.oTstDrv.uRevision >= 156485:
     3919                 # Listing directories only is available for >= VBox 7.1.
    39193920                fUseDirList = random.choice( [True, False] );
    39203921            (fRc2, cDirs, cFiles, cOthers) = self.gctrlReadDirTree(oCurTest, oCurGuestSession, oCurRes.fRc,
     
    39653966                    fUseDirList = False;
    39663967                    cEntriesPerRead = random.randrange(1, 32768);
    3967                     if self.oTstDrv.fpApiVer >= 7.1: # Listing directories only is available for >= VBox 7.1.
     3968                    if self.oTstDrv.fpApiVer >= 7.1 and self.oTstDrv.uRevision >= 156485:
     3969                        # Listing directories only is available for >= VBox 7.1.
    39683970                        fUseDirList = random.choice( [True, False] );
    39693971                    fRc = self.gctrlReadDirTree2(oCurGuestSession, oDir, fUseDirList, cEntriesPerRead) and fRc;
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