summaryrefslogtreecommitdiffstats
path: root/tests/include
diff options
context:
space:
mode:
Diffstat (limited to 'tests/include')
-rw-r--r--tests/include/test_memory_chunk.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/include/test_memory_chunk.cpp b/tests/include/test_memory_chunk.cpp
index 5042882..f496e4d 100644
--- a/tests/include/test_memory_chunk.cpp
+++ b/tests/include/test_memory_chunk.cpp
@@ -55,13 +55,13 @@ int main(int argc, char * argv[]){
printf("%d\t%d\n", *p3, *(p3+1));
int tmp;
- assert(chunk->get_content(sizeof(int), &tmp, sizeof(int)));
+ check_result(chunk->get_content(sizeof(int), &tmp, sizeof(int)));
printf("%d\n", tmp);
- assert(chunk->save("/tmp/test.bin"));
- assert(chunk->load("/tmp/test.bin"));
+ check_result(chunk->save("/tmp/test.bin"));
+ check_result(chunk->load("/tmp/test.bin"));
#ifdef LIBPINYIN_USE_MMAP
- assert(chunk->mmap("/tmp/test.bin"));
+ check_result(chunk->mmap("/tmp/test.bin"));
#endif
delete chunk;