VirtualBox

Ignore:
Timestamp:
Feb 16, 2022 3:39:52 PM (3 years ago)
Author:
vboxsync
Message:

Guest Control/Validation Kit: Explicitly wait for blocking processes reaching the 'started' status so that they later can be intentionally be terminated (if supported) to check the process references.

File:
1 edited

Legend:

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

    r93793 r93795  
    28852885                    #       hanging around forever.  This can happen if the installed Guest Additions
    28862886                    #       do not support terminating guest processes.
     2887                    try:
     2888                        reporter.log('Waiting for blocking process #%d getting started...' % (i));
     2889                        eWaitResult = oProcess.waitForArray([ vboxcon.ProcessWaitForFlag_Start, ], 30 * 1000);
     2890                        eProcessStatus = oProcess.status;
     2891                    except:
     2892                        fRc = reporter.errorXcpt('Waiting for blocking process #%d failed:' % (i,));
     2893                    else:
     2894                        if eProcessStatus != vboxcon.ProcessStatus_Started:
     2895                            fRc = reporter.error('Waiting for blocking processes #%d resulted in status %d, expected %d (wr=%d)'
     2896                                                 % (i, eProcessStatus, vboxcon.ProcessStatus_Started, eWaitResult));
    28872897                    aoProcs.append(oCurProc);
    28882898                except:
    2889                     fRc = reporter.errorXcpt('Creating non-stale blocking process #%d failed:' % (i,));
     2899                    fRc = reporter.errorXcpt('Creating blocking process #%d failed:' % (i,));
    28902900                    break;
    28912901
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