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
0f194e61
Commit
0f194e61
authored
Aug 27, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added debug to ndb test
parent
3d6675cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
ndb/test/src/NDBT_Test.cpp
ndb/test/src/NDBT_Test.cpp
+17
-0
No files found.
ndb/test/src/NDBT_Test.cpp
View file @
0f194e61
...
...
@@ -14,6 +14,9 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <ndb_global.h>
#include <my_sys.h>
#include "NDBT.hpp"
#include "NDBT_Test.hpp"
...
...
@@ -953,6 +956,9 @@ int NDBT_TestSuite::execute(int argc, const char** argv){
int
_print_cases
=
false
;
int
_verbose
=
false
;
#ifndef DBUG_OFF
const
char
*
debug_option
=
0
;
#endif
struct
getargs
args
[]
=
{
{
"print"
,
'\0'
,
arg_flag
,
&
_print
,
"Print execution tree"
,
""
},
...
...
@@ -964,6 +970,10 @@ int NDBT_TestSuite::execute(int argc, const char** argv){
{
"remote_mgm"
,
'm'
,
arg_string
,
&
_remote_mgm
,
"host:port to mgmsrv of remote cluster"
,
"host:port"
},
{
"timer"
,
't'
,
arg_flag
,
&
_timer
,
"Print execution time"
,
"time"
},
#ifndef DBUG_OFF
{
"debug"
,
0
,
arg_string
,
&
debug_option
,
"Specify debug options e.g. d:t:i:o,out.trace"
,
"options"
},
#endif
{
"verbose"
,
'v'
,
arg_flag
,
&
_verbose
,
"Print verbose status"
,
"verbose"
}
};
int
num_args
=
sizeof
(
args
)
/
sizeof
(
args
[
0
]);
...
...
@@ -973,6 +983,13 @@ int NDBT_TestSuite::execute(int argc, const char** argv){
arg_printusage
(
args
,
num_args
,
argv
[
0
],
"tabname1 tabname2 ... tabnameN
\n
"
);
return
NDBT_WRONGARGS
;
}
#ifndef DBUG_OFF
my_init
();
if
(
debug_option
)
DBUG_PUSH
(
debug_option
);
#endif
// Check if table name is supplied
if
(
argv
[
optind
]
!=
NULL
)
_tabname
=
argv
[
optind
];
...
...
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