2013-04-17 00:00:59 -04:00
|
|
|
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
|
|
|
|
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
|
2013-04-16 23:59:44 -04:00
|
|
|
#ident "$Id$"
|
2008-03-11 18:51:26 +00:00
|
|
|
#ident "Copyright (c) 2007, 2008 Tokutek Inc. All rights reserved."
|
|
|
|
|
2013-04-16 23:57:32 -04:00
|
|
|
#include "test.h"
|
|
|
|
|
2013-04-17 00:01:15 -04:00
|
|
|
|
2008-03-11 18:51:26 +00:00
|
|
|
// create and close, making sure that everything is deallocated properly.
|
|
|
|
|
2013-04-16 23:57:32 -04:00
|
|
|
int
|
|
|
|
test_main (int argc __attribute__((__unused__)),
|
|
|
|
const char *argv[] __attribute__((__unused__))) {
|
2008-03-11 18:51:26 +00:00
|
|
|
int r;
|
2013-04-17 00:01:28 -04:00
|
|
|
toku_os_recursive_delete(TOKU_TEST_FILENAME);
|
|
|
|
r = toku_os_mkdir(TOKU_TEST_FILENAME, S_IRWXU); assert(r==0);
|
2008-03-11 18:51:26 +00:00
|
|
|
TOKULOGGER logger;
|
|
|
|
r = toku_logger_create(&logger);
|
|
|
|
assert(r == 0);
|
|
|
|
r = toku_logger_close(&logger);
|
|
|
|
assert(r == 0);
|
2013-04-17 00:01:28 -04:00
|
|
|
toku_os_recursive_delete(TOKU_TEST_FILENAME);
|
2008-03-11 18:51:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|