VirtualBox

Changeset 20647 in vbox


Ignore:
Timestamp:
Jun 16, 2009 9:58:09 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48734
Message:

IPRT: Added simple testcase for the RTStrCache API (just to smoke it out).

Location:
trunk/src/VBox/Runtime
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/strcache-stubs-generic.cpp

    r20360 r20647  
    4242
    4343
     44
    4445RTDECL(int) RTStrCacheCreate(PRTSTRCACHE phStrCache, const char *pszName)
    4546{
     
    5354RTDECL(int) RTStrCacheDestroy(RTSTRCACHE hStrCache)
    5455{
    55     if (hStrCache == NIL_RTSTRCACHE)
     56    if (    hStrCache == NIL_RTSTRCACHE
     57        ||  hStrCache == RTSTRCACHE_DEFAULT)
    5658        return VINF_SUCCESS;
    57     return VERR_INVALID_HANDLE;
     59    return RTMemPoolDestroy((RTMEMPOOL)hStrCache);
    5860}
    5961
  • trunk/src/VBox/Runtime/testcase/Makefile.kmk

    r20563 r20647  
    55
    66#
    7 # Copyright (C) 2006-2007 Sun Microsystems, Inc.
     7# Copyright (C) 2006-2009 Sun Microsystems, Inc.
    88#
    99# This file is part of VirtualBox Open Source Edition (OSE), as
     
    8686        tstSems \
    8787        tstSemPingPong \
     88        tstRTStrCache \
    8889        tstStrFormat \
    8990        tstStrSimplePattern \
     
    348349tstSems_SOURCES = tstSems.cpp
    349350
     351tstRTStrCache_TEMPLATE = VBOXR3TSTEXE
     352tstRTStrCache_SOURCES = tstRTStrCache.cpp
     353
    350354tstStrFormat_SOURCES = tstStrFormat.cpp
    351355
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