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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
7ec1e170
Commit
7ec1e170
authored
Mar 09, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added testcase for multiple tables and events
parent
664ad900
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
498 additions
and
6 deletions
+498
-6
ndb/test/ndbapi/Makefile.am
ndb/test/ndbapi/Makefile.am
+3
-1
ndb/test/ndbapi/test_event.cpp
ndb/test/ndbapi/test_event.cpp
+8
-5
ndb/test/ndbapi/test_event_multi_table.cpp
ndb/test/ndbapi/test_event_multi_table.cpp
+487
-0
No files found.
ndb/test/ndbapi/Makefile.am
View file @
7ec1e170
...
...
@@ -33,7 +33,8 @@ testDeadlock \
test_event ndbapi_slow_select testReadPerf testLcp
\
testPartitioning
\
testBitfield
\
DbCreate DbAsyncGenerator
DbCreate DbAsyncGenerator
\
test_event_multi_table
#flexTimedAsynch
#testBlobs
...
...
@@ -76,6 +77,7 @@ testPartitioning_SOURCES = testPartitioning.cpp
testBitfield_SOURCES
=
testBitfield.cpp
DbCreate_SOURCES
=
bench/mainPopulate.cpp bench/dbPopulate.cpp bench/userInterface.cpp bench/dbPopulate.h bench/userInterface.h bench/testData.h bench/testDefinitions.h bench/ndb_schema.hpp bench/ndb_error.hpp
DbAsyncGenerator_SOURCES
=
bench/mainAsyncGenerator.cpp bench/asyncGenerator.cpp bench/ndb_async2.cpp bench/dbGenerator.h bench/macros.h bench/userInterface.h bench/testData.h bench/testDefinitions.h bench/ndb_schema.hpp bench/ndb_error.hpp
test_event_multi_table_SOURCES
=
test_event_multi_table.cpp
INCLUDES_LOC
=
-I
$(top_srcdir)
/ndb/include/kernel
...
...
ndb/test/ndbapi/test_event.cpp
View file @
7ec1e170
...
...
@@ -14,11 +14,11 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include
"NDBT_Test.hpp"
#include
"NDBT_ReturnCodes.h"
#include
"HugoTransactions.hpp"
#include
"UtilTransactions.hpp"
#include
"TestNdbEventOperation.hpp"
#include
<NDBT_Test.hpp>
#include
<NDBT_ReturnCodes.h>
#include
<HugoTransactions.hpp>
#include
<UtilTransactions.hpp>
#include
<TestNdbEventOperation.hpp>
#define GETNDB(ps) ((NDBT_NdbApiStep*)ps)->getNdb()
...
...
@@ -263,7 +263,10 @@ int runEventApplier(NDBT_Context* ctx, NDBT_Step* step)
//printf("now waiting for event...\n");
res
=
GETNDB
(
step
)
->
pollEvents
(
1000
);
// wait for event or 1000 ms
if
(
res
<=
0
)
{
ndbout_c
(
"********************"
);
continue
;
}
//printf("got data! %d\n", r);
int
overrun
=
0
;
...
...
ndb/test/ndbapi/test_event_multi_table.cpp
0 → 100644
View file @
7ec1e170
This diff is collapsed.
Click to expand it.
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