Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
315386fa
Commit
315386fa
authored
Feb 01, 2013
by
Leif Walsh
Committed by
Yoni Fogel
Apr 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refs #5949 fix le-cursor-*
git-svn-id:
file:///svn/toku/tokudb@52767
c7de825b-a66e-492c-adef-691d508d4ae1
parent
8ba95208
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
24 deletions
+10
-24
ft/tests/le-cursor-provdel.cc
ft/tests/le-cursor-provdel.cc
+3
-9
ft/tests/le-cursor-right.cc
ft/tests/le-cursor-right.cc
+5
-11
ft/tests/le-cursor-walk.cc
ft/tests/le-cursor-walk.cc
+2
-4
No files found.
ft/tests/le-cursor-provdel.cc
View file @
315386fa
...
@@ -202,11 +202,7 @@ static void
...
@@ -202,11 +202,7 @@ static void
init_logdir
(
const
char
*
logdir
)
{
init_logdir
(
const
char
*
logdir
)
{
int
error
;
int
error
;
char
cmd
[
32
+
strlen
(
logdir
)];
toku_os_recursive_delete
(
logdir
);
sprintf
(
cmd
,
"rm -rf %s"
,
logdir
);
error
=
system
(
cmd
);
assert
(
error
==
0
);
error
=
toku_os_mkdir
(
logdir
,
0777
);
error
=
toku_os_mkdir
(
logdir
,
0777
);
assert
(
error
==
0
);
assert
(
error
==
0
);
}
}
...
@@ -225,10 +221,8 @@ test_main (int argc , const char *argv[]) {
...
@@ -225,10 +221,8 @@ test_main (int argc , const char *argv[]) {
assert
(
error
==
0
);
assert
(
error
==
0
);
const
int
n
=
10
;
const
int
n
=
10
;
char
ftfile
[
TOKU_PATH_MAX
+
1
];
create_populate_tree
(
"."
,
"ftfile"
,
n
);
toku_path_join
(
logdir
,
2
,
TOKU_TEST_FILENAME
,
"ftfile"
);
test_provdel
(
"."
,
"ftfile"
,
n
);
create_populate_tree
(
"."
,
ftfile
,
n
);
test_provdel
(
"."
,
ftfile
,
n
);
return
0
;
return
0
;
}
}
ft/tests/le-cursor-right.cc
View file @
315386fa
...
@@ -269,11 +269,7 @@ static void
...
@@ -269,11 +269,7 @@ static void
init_logdir
(
const
char
*
logdir
)
{
init_logdir
(
const
char
*
logdir
)
{
int
error
;
int
error
;
char
cmd
[
32
+
strlen
(
logdir
)];
toku_os_recursive_delete
(
logdir
);
sprintf
(
cmd
,
"rm -rf %s"
,
logdir
);
error
=
system
(
cmd
);
assert
(
error
==
0
);
error
=
toku_os_mkdir
(
logdir
,
0777
);
error
=
toku_os_mkdir
(
logdir
,
0777
);
assert
(
error
==
0
);
assert
(
error
==
0
);
}
}
...
@@ -292,12 +288,10 @@ test_main (int argc , const char *argv[]) {
...
@@ -292,12 +288,10 @@ test_main (int argc , const char *argv[]) {
assert
(
error
==
0
);
assert
(
error
==
0
);
const
int
n
=
10
;
const
int
n
=
10
;
char
ftfile
[
TOKU_PATH_MAX
+
1
];
create_populate_tree
(
"."
,
"ftfile"
,
n
);
toku_path_join
(
logdir
,
2
,
TOKU_TEST_FILENAME
,
"ftfile"
);
test_neg_infinity
(
"ftfile"
,
n
);
create_populate_tree
(
"."
,
ftfile
,
n
);
test_pos_infinity
(
"ftfile"
,
n
);
test_neg_infinity
(
ftfile
,
n
);
test_between
(
"ftfile"
,
n
);
test_pos_infinity
(
ftfile
,
n
);
test_between
(
ftfile
,
n
);
return
0
;
return
0
;
}
}
ft/tests/le-cursor-walk.cc
View file @
315386fa
...
@@ -183,11 +183,9 @@ test_main (int argc , const char *argv[]) {
...
@@ -183,11 +183,9 @@ test_main (int argc , const char *argv[]) {
char
logdir
[
TOKU_PATH_MAX
+
1
];
char
logdir
[
TOKU_PATH_MAX
+
1
];
toku_path_join
(
logdir
,
2
,
TOKU_TEST_FILENAME
,
"logdir"
);
toku_path_join
(
logdir
,
2
,
TOKU_TEST_FILENAME
,
"logdir"
);
char
ftfile
[
TOKU_PATH_MAX
+
1
];
toku_path_join
(
logdir
,
2
,
TOKU_TEST_FILENAME
,
"ftfile"
);
run_test
(
logdir
,
ftfile
,
0
);
run_test
(
logdir
,
"ftfile"
,
0
);
run_test
(
logdir
,
ftfile
,
1000
);
run_test
(
logdir
,
"ftfile"
,
1000
);
return
0
;
return
0
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment