VirtualBox

Ignore:
Timestamp:
Nov 18, 2022 7:36:45 AM (2 years ago)
Author:
vboxsync
Message:

Validation Kit/Guest Control: More verbose logging for file reads.

File:
1 edited

Legend:

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

    r97586 r97604  
    43844384                acbChunks = (768*1024, 128*1024);
    43854385
     4386            reporter.log2('Chunked reads');
     4387
    43864388            for cbChunk in acbChunks:
    43874389                # Read the whole file straight thru:
     
    44244426            # Random reads.
    44254427            #
     4428            reporter.log2('Random reads (seek)');
    44264429            for _ in xrange(8):
    44274430                offFile  = self.oTestFiles.oRandom.randrange(0, oTestFile.cbContent + 1024);
     
    44724475            # Random reads using readAt.
    44734476            #
     4477            reporter.log2('Random reads (readAt)');
    44744478            for _ in xrange(12):
    44754479                offFile  = self.oTestFiles.oRandom.randrange(0, oTestFile.cbContent + 1024);
     
    45134517
    45144518            # Zero byte reads -> E_INVALIDARG.
     4519            reporter.log2('Zero byte reads');
    45154520            try:
    45164521                abRead = oFile.read(0, 30*1000);
     
    45314536            # See what happens when we read 1GiB.  We should get a max of 1MiB back.
    45324537            ## @todo Document this behaviour in VirtualBox.xidl.
     4538            reporter.log2('1GB reads');
    45334539            try:
    45344540                oFile.seek(0, vboxcon.FileSeekOrigin_Begin);
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