VirtualBox

Ignore:
Timestamp:
Feb 21, 2019 6:35:09 PM (6 years ago)
Author:
vboxsync
Message:

Guest Control/Validation Kit: Use an array for file.write() calls.

File:
1 edited

Legend:

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

    r77384 r77413  
    4444
    4545# Standard Python imports.
     46from array import array
    4647import errno
    4748import os
     
    30583059                    ## @todo Split this up in 64K writes. Later.
    30593060                    ## @todo Test timeouts.
    3060                     cBytesWritten = curFile.write(curTest.aBuf, 30 * 1000);
     3061                    cBytesWritten = curFile.write(array('b', curTest.aBuf), 30 * 1000);
    30613062                    if    curRes.cbProcessed > 0 \
    30623063                      and curRes.cbProcessed != cBytesWritten:
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