VirtualBox

Ignore:
Timestamp:
Feb 21, 2024 1:45:10 PM (12 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161834
Message:

Audio/VKAT: Added new test option "--timeout <ms>" to specify the failsafe timeout (defaults to 5 minutes if not specified).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/audio/vkatCommon.cpp

    r103418 r103492  
    11/* $Id$ */
    22/** @file
    3  * Validation Kit Audio Test (VKAT) - Self test code.
     3 * Validation Kit Audio Test (VKAT) - Common code.
    44 */
    55
     
    573573
    574574        uint64_t        offStream          = 0;
    575         uint64_t        nsTimeout          = RT_MS_5MIN_64 * RT_NS_1MS;
     575        uint64_t        nsTimeout          = pTstEnv->msTimeout * RT_NS_1MS;
    576576        uint64_t        nsLastMsgCantWrite = 0; /* Timestamp (in ns) when the last message of an unwritable stream was shown. */
    577577        uint64_t        nsLastWrite        = 0;
     
    877877        uint64_t const  nsStarted         = RTTimeNanoTS();
    878878
    879         uint64_t        nsTimeout         = RT_MS_5MIN_64 * RT_NS_1MS;
     879        uint64_t        nsTimeout         = pTstEnv->msTimeout * RT_NS_1MS;
    880880        uint64_t        nsLastMsgCantRead = 0; /* Timestamp (in ns) when the last message of an unreadable stream was shown. */
    881881
     
    14731473{
    14741474    RT_BZERO(pTstEnv, sizeof(AUDIOTESTENV));
     1475
     1476    pTstEnv->msTimeout = RT_MS_5MIN; /* Timeout defaults to 5 minutes. */
    14751477
    14761478    audioTestIoOptsInitDefaults(&pTstEnv->IoOpts);
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