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
95781d40
Commit
95781d40
authored
Jun 26, 2008
by
Bradley C. Kuszmaul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup. Addresses #944, #938.
git-svn-id:
file:///svn/tokudb@4772
c7de825b-a66e-492c-adef-691d508d4ae1
parent
bfb3de31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/tests/Makefile
src/tests/Makefile
+1
-1
src/tests/test944.c
src/tests/test944.c
+4
-4
No files found.
src/tests/Makefile
View file @
95781d40
...
...
@@ -51,7 +51,7 @@ TDB_CPPFLAGS = -I../../include
SRCS
=
$(
sort
$(
wildcard
*
.c
))
TDB_TESTS
=
$(
patsubst
%.c,%.tdb,
$(SRCS)
)
BDB_DONTRUN
=
bug627 test_abort1 keyrange keyrange-unflat keyrange-dupsort keyrange-dupsort-unflat manyfiles
BDB_DONTRUN
=
bug627 test_abort1 keyrange keyrange-unflat keyrange-dupsort keyrange-dupsort-unflat manyfiles
test_938c
BDB_TESTS
=
$(
patsubst
%.c,%.bdb,
$(
filter-out
$(
patsubst
%,%.c,
$(BDB_DONTRUN)
)
,
$(SRCS)
))
TDB_TESTS_THAT_SHOULD_FAIL
=
test_groupcommit_count test-recover1 test-recover2 test-recover3 test_txn_recover3 test944
...
...
src/tests/test944.c
View file @
95781d40
...
...
@@ -57,11 +57,11 @@ void run (int choice) {
dbt_init_malloc
(
&
vdbt
);
i
=
0
;
while
(
0
==
(
r
=
c
->
c_get
(
c
,
&
kdbt
,
&
vdbt
,
DB_NEXT
)))
{
printf
(
"Got %d %d
\n
"
,
*
(
unsigned
char
*
)
kdbt
.
data
,
*
(
unsigned
char
*
)
vdbt
.
data
);
//
printf("Got %d %d\n", *(unsigned char*)kdbt.data, *(unsigned char*)vdbt.data);
i
++
;
}
CKERR2
(
r
,
DB_NOTFOUND
);
printf
(
"i=%d N=%d
\n
"
,
i
,
N
);
//
printf("i=%d N=%d\n", i, N);
assert
(
i
==
N
/
2
);
r
=
c
->
c_close
(
c
);
CKERR
(
r
);
r
=
txn
->
commit
(
txn
,
DB_TXN_NOSYNC
);
CKERR
(
r
);
...
...
@@ -72,7 +72,7 @@ void run (int choice) {
DBT
kdbt
;
char
key
=
v
[
i
];
r
=
db
->
del
(
db
,
txn
,
dbt_init
(
&
kdbt
,
&
key
,
1
),
0
);
CKERR
(
r
);
printf
(
" del %d
\n
"
,
key
);
//
printf(" del %d\n", key);
}
r
=
txn
->
commit
(
txn
,
DB_TXN_NOSYNC
);
CKERR
(
r
);
}
...
...
@@ -122,7 +122,7 @@ int main(int argc, const char *argv[]) {
r
=
txn
->
commit
(
txn
,
0
);
CKERR
(
r
);
}
int
i
;
printf
(
"fact(%d)=%d
\n
"
,
N
,
fact
(
N
));
//
printf("fact(%d)=%d\n", N, fact(N));
for
(
i
=
0
;
i
<
fact
(
N
);
i
++
)
{
run
(
i
);
}
...
...
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