VirtualBox

Ignore:
Timestamp:
Sep 28, 2021 8:28:54 AM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: Try not hogging the CPU too much when waiting for host execution output and process pending events while at it. ​bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/audio/tdAudioTest.py

    r91415 r91426  
    3939import signal
    4040import subprocess
     41import time
    4142
    4243# Only the main script needs to modify the path.
     
    279280            for line in iter(oProcess.stdout.readline, b''):
    280281                reporter.log('[' + sWhat + '] ' + line.decode('utf-8'));
     282                self.processPendingEvents();
     283                time.sleep(0.01); # Don't hog the CPU too much.
    281284            oProcess.communicate();
    282285            if oProcess.returncode == 0:
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