VirtualBox

Changeset 69666 in vbox for trunk


Ignore:
Timestamp:
Nov 13, 2017 8:45:19 AM (7 years ago)
Author:
vboxsync
Message:

iprt: r3/test.cpp: Assert if test or value names exceed current testmanger configuration maximums.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/test.cpp

    r69111 r69666  
    13601360    pTest->pszSubTest = RTStrDup(pszSubTest);
    13611361    pTest->cchSubTest = strlen(pszSubTest);
     1362    Assert(pTest->cchSubTest < 64 /* See g_kcchMaxTestResultName in testmanager/config.py. */);
    13621363    pTest->fSubTestSkipped  = false;
    13631364    pTest->fSubTestReported = false;
     
    16001601    RTTEST_GET_VALID_RETURN(pTest);
    16011602
     1603    Assert(strlen(pszName) < 56 /* See g_kcchMaxTestValueName in testmanager/config.py. */);
     1604
    16021605    const char *pszUnit = rtTestUnitName(enmUnit);
    16031606
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