From 8bc5ac336d5d684341a05e97d1cb1b18ecba0331 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 27 Jan 2009 00:31:24 +0000 Subject: Hey, I think that'll fix some things valgrind was bitching about. Apparently BitString is...not so good...I may have to rewrite big chunks. --- src/tests/cache.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/tests') diff --git a/src/tests/cache.cpp b/src/tests/cache.cpp index bacd7fc..323edda 100644 --- a/src/tests/cache.cpp +++ b/src/tests/cache.cpp @@ -168,7 +168,7 @@ int main( int argc, char *argv[] ) if( argc < 3 ) { - printf("Try: %s [crud] []\n\n", argv[0] ); + printf("Try: %s [crudl] []\n\n", argv[0] ); return 0; } @@ -203,6 +203,15 @@ int main( int argc, char *argv[] ) cBob.erase( strtol( argv[2], NULL, 0 ) ); } return 0; + + case 'l': + { + BobCache::Ptr pBob = cBob.getLazy( strtol( argv[2], NULL, 0 ) ); + printf("isLoaded: %s\n", pBob.isLoaded()?"yes":"no"); + printf("Value = %d\n", pBob->getInt() ); + printf("isLoaded: %s\n", pBob.isLoaded()?"yes":"no"); + } + return 0; } } -- cgit v1.2.3