Commit 07f218f3 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

imp toku_os_ closes #1253

git-svn-id: file:///svn/toku/tokudb.1032b@7838 c7de825b-a66e-492c-adef-691d508d4ae1
parent a2b028cf
......@@ -79,7 +79,7 @@ static void benchmark_setup (void) {
system(unlink_cmd);
}
if (strcmp(dbdir, ".") != 0) {
r = os_mkdir(dbdir,S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
r = toku_os_mkdir(dbdir,S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
assert(r == 0);
}
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "portability.h"
#include <db.h>
#include <assert.h>
#include "test.h"
int main (int UU(argc), char UU(*argv[])) {
int main (int argc, char *argv[]) {
const char *v;
int major, minor, patch;
int i;
for (i=1; i<argc; i++) {
char *arg = argv[i];
if (strcmp(arg, "-v") == 0)
verbose++;
}
v = db_version(0, 0, 0);
assert(v!=0);
v = db_version(&major, &minor, &patch);
assert(major==DB_VERSION_MAJOR);
assert(minor==DB_VERSION_MINOR);
assert(patch==DB_VERSION_PATCH);
if (verbose)
printf("%d.%d.%d %s\n", major, minor, patch, v);
return 0;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment