VirtualBox

Ignore:
Timestamp:
Mar 15, 2017 6:24:06 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
114007
Message:

bs3kit: Made Bs3TestFailed* return false as that's more convenient when using boolean success indicator in the test driver code.

Location:
trunk/src/VBox/ValidationKit/bootsectors/bs3kit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-TestFailed.c

    r64367 r66117  
    9696 */
    9797#undef Bs3TestFailedV
    98 BS3_CMN_DEF(void, Bs3TestFailedV,(const char *pszFormat, va_list va))
     98BS3_CMN_DEF(bool, Bs3TestFailedV,(const char *pszFormat, va_list va))
    9999{
    100100    BS3TESTFAILEDBUF Buf;
     
    113113    Buf.cchBuf   = 0;
    114114    Bs3StrFormatV(pszFormat, va, bs3TestFailedStrOutput, &Buf);
     115    return false;
    115116}
    116117
     
    120121 */
    121122#undef Bs3TestFailedF
    122 BS3_CMN_DEF(void, Bs3TestFailedF,(const char *pszFormat, ...))
     123BS3_CMN_DEF(bool, Bs3TestFailedF,(const char *pszFormat, ...))
    123124{
    124125    va_list va;
     
    126127    BS3_CMN_NM(Bs3TestFailedV)(pszFormat, va);
    127128    va_end(va);
     129    return false;
    128130}
    129131
     
    133135 */
    134136#undef Bs3TestFailed
    135 BS3_CMN_DEF(void, Bs3TestFailed,(const char *pszMessage))
     137BS3_CMN_DEF(bool, Bs3TestFailed,(const char *pszMessage))
    136138{
    137     BS3_CMN_NM(Bs3TestFailedF)("%s", pszMessage);
     139    return BS3_CMN_NM(Bs3TestFailedF)("%s", pszMessage);
    138140}
    139141
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h

    r66112 r66117  
    29872987/**
    29882988 * Equivalent to RTTestIFailed.
    2989  */
    2990 BS3_CMN_PROTO_STUB(void, Bs3TestFailed,(const char BS3_FAR *pszMessage));
     2989 * @returns false.
     2990 */
     2991BS3_CMN_PROTO_STUB(bool, Bs3TestFailed,(const char BS3_FAR *pszMessage));
    29912992
    29922993/**
    29932994 * Equivalent to RTTestIFailedF.
    2994  */
    2995 BS3_CMN_PROTO_STUB(void, Bs3TestFailedF,(const char BS3_FAR *pszFormat, ...));
     2995 * @returns false.
     2996 */
     2997BS3_CMN_PROTO_STUB(bool, Bs3TestFailedF,(const char BS3_FAR *pszFormat, ...));
    29962998
    29972999/**
    29983000 * Equivalent to RTTestIFailedV.
    2999  */
    3000 BS3_CMN_PROTO_STUB(void, Bs3TestFailedV,(const char BS3_FAR *pszFormat, va_list va));
     3001 * @returns false.
     3002 */
     3003BS3_CMN_PROTO_STUB(bool, Bs3TestFailedV,(const char BS3_FAR *pszFormat, va_list va));
    30013004
    30023005/**
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette