diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-01-27 00:31:24 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-01-27 00:31:24 +0000 |
commit | 8bc5ac336d5d684341a05e97d1cb1b18ecba0331 (patch) | |
tree | f4564108f73b3bb9be177633eca4053810c225e9 /src/tests | |
parent | dfd5f8696787d18ae688b662040289f84b667fdd (diff) | |
download | libbu++-8bc5ac336d5d684341a05e97d1cb1b18ecba0331.tar.gz libbu++-8bc5ac336d5d684341a05e97d1cb1b18ecba0331.tar.bz2 libbu++-8bc5ac336d5d684341a05e97d1cb1b18ecba0331.tar.xz libbu++-8bc5ac336d5d684341a05e97d1cb1b18ecba0331.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/tests/cache.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
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[] ) | |||
168 | 168 | ||
169 | if( argc < 3 ) | 169 | if( argc < 3 ) |
170 | { | 170 | { |
171 | printf("Try: %s [crud] [<id/value>]\n\n", argv[0] ); | 171 | printf("Try: %s [crudl] [<id/value>]\n\n", argv[0] ); |
172 | return 0; | 172 | return 0; |
173 | } | 173 | } |
174 | 174 | ||
@@ -203,6 +203,15 @@ int main( int argc, char *argv[] ) | |||
203 | cBob.erase( strtol( argv[2], NULL, 0 ) ); | 203 | cBob.erase( strtol( argv[2], NULL, 0 ) ); |
204 | } | 204 | } |
205 | return 0; | 205 | return 0; |
206 | |||
207 | case 'l': | ||
208 | { | ||
209 | BobCache::Ptr pBob = cBob.getLazy( strtol( argv[2], NULL, 0 ) ); | ||
210 | printf("isLoaded: %s\n", pBob.isLoaded()?"yes":"no"); | ||
211 | printf("Value = %d\n", pBob->getInt() ); | ||
212 | printf("isLoaded: %s\n", pBob.isLoaded()?"yes":"no"); | ||
213 | } | ||
214 | return 0; | ||
206 | } | 215 | } |
207 | 216 | ||
208 | } | 217 | } |