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
69ca56d9
Commit
69ca56d9
authored
Apr 16, 2013
by
Barry Perlman
Committed by
Yoni Fogel
Apr 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[t:2449] Fix USE_PUTS
git-svn-id:
file:///svn/toku/tokudb@19775
c7de825b-a66e-492c-adef-691d508d4ae1
parent
b20c6e3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
src/tests/loader-cleanup-test.c
src/tests/loader-cleanup-test.c
+11
-4
No files found.
src/tests/loader-cleanup-test.c
View file @
69ca56d9
...
...
@@ -350,7 +350,7 @@ static int poll_function (void *extra, float progress) {
assert
(
extra
==
expect_poll_void
);
assert
(
0
.
0
<=
progress
&&
progress
<=
1
.
0
);
poll_count
++
;
return
0
;
return
abort_on_poll
;
}
static
void
test_loader
(
enum
test_type
t
,
DB
**
dbs
)
...
...
@@ -416,7 +416,12 @@ static void test_loader(enum test_type t, DB **dbs)
if
(
!
USE_PUTS
)
assert
(
poll_count
>
0
);
}
else
if
(
t
==
abort_via_poll
)
{
assert
(
!
USE_PUTS
);
// test makes no sense with USE_PUTS
printf
(
"closing, but expecting abort via poll
\n
"
);
r
=
loader
->
close
(
loader
);
assert
(
r
);
// not defined what close() returns when poll function returns non-zero
}
else
{
printf
(
"aborting loader"
);
fflush
(
stdout
);
r
=
loader
->
abort
(
loader
);
...
...
@@ -505,8 +510,10 @@ int test_main(int argc, char * const *argv) {
run_test
(
commit
);
if
(
verbose
)
printf
(
"
\n\n
Testing loader with loader abort and txn abort
\n
"
);
run_test
(
abort_loader
);
if
(
verbose
)
printf
(
"
\n\n
Testing loader with loader abort_via_poll and txn abort
\n
"
);
run_test
(
abort_via_poll
);
if
(
!
USE_PUTS
)
{
if
(
verbose
)
printf
(
"
\n\n
Testing loader with loader abort_via_poll and txn abort
\n
"
);
run_test
(
abort_via_poll
);
}
if
(
verbose
)
printf
(
"
\n\n
Testing loader with loader close and txn abort
\n
"
);
run_test
(
abort_txn
);
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