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
23aeb617
Commit
23aeb617
authored
May 03, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check if "../libtool" is available and use it only when it is.
parent
8d1b76e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+19
-12
No files found.
mysql-test/mysql-test-run.pl
View file @
23aeb617
...
...
@@ -134,7 +134,6 @@ our $glob_win32= 0; # OS and native Win32 executables
our
$glob_win32_perl
=
0
;
# ActiveState Win32 Perl
our
$glob_cygwin_perl
=
0
;
# Cygwin Perl
our
$glob_cygwin_shell
=
undef
;
our
$glob_use_libtool
=
1
;
our
$glob_mysql_test_dir
=
undef
;
our
$glob_mysql_bench_dir
=
undef
;
our
$glob_hostname
=
undef
;
...
...
@@ -444,13 +443,6 @@ sub initial_setup () {
$glob_cygwin_perl
=
(
$^O
eq
"
cygwin
");
$glob_win32
=
(
$glob_win32_perl
or
$glob_cygwin_perl
);
# Use libtool on all platforms except windows
if
(
$glob_win32
)
{
$glob_use_libtool
=
0
;
}
$exe_libtool
=
"
../libtool
";
# We require that we are in the "mysql-test" directory
# to run mysql-test-run
...
...
@@ -1001,6 +993,21 @@ sub snapshot_setup () {
sub
executable_setup
()
{
#
# Check if libtool is available in this distribution/clone
# we need it when valgrinding or debugging non installed binary
# Otherwise valgrind will valgrind the libtool wrapper or bash
# and gdb will not find the real executable to debug
#
if
(
-
x
"
../libtool
")
{
$exe_libtool
=
"
../libtool
";
if
(
$opt_valgrind
or
$glob_debugger
)
{
mtr_report
("
Using
\"
$exe_libtool
\"
when running valgrind or debugger
");
}
}
if
(
$opt_source_dist
)
{
if
(
$glob_win32
)
...
...
@@ -2626,7 +2633,7 @@ sub mysqld_start ($$$$$) {
$exe
=
undef
;
}
if
(
$
glob_us
e_libtool
and
$opt_valgrind
)
if
(
$
ex
e_libtool
and
$opt_valgrind
)
{
# Add "libtool --mode-execute"
# if running in valgrind(to avoid valgrinding bash)
...
...
@@ -3132,7 +3139,7 @@ sub run_mysqltest ($) {
debugger_arguments
(
\
$args
,
\
$exe
,
"
client
");
}
if
(
$
glob_us
e_libtool
and
$opt_valgrind
)
if
(
$
ex
e_libtool
and
$opt_valgrind
)
{
# Add "libtool --mode-execute" before the test to execute
# if running in valgrind(to avoid valgrinding bash)
...
...
@@ -3207,7 +3214,7 @@ sub gdb_arguments {
mtr_add_arg
(
$$args
,
"
$type
");
mtr_add_arg
(
$$args
,
"
-e
");
if
(
$
glob_us
e_libtool
)
if
(
$
ex
e_libtool
)
{
mtr_add_arg
(
$$args
,
$exe_libtool
);
mtr_add_arg
(
$$args
,
"
--mode=execute
");
...
...
@@ -3270,7 +3277,7 @@ sub ddd_arguments {
my
$save_exe
=
$$exe
;
$$args
=
[]
;
if
(
$
glob_us
e_libtool
)
if
(
$
ex
e_libtool
)
{
$$exe
=
$exe_libtool
;
mtr_add_arg
(
$$args
,
"
--mode=execute
");
...
...
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