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
d4854d74
Commit
d4854d74
authored
Sep 01, 2009
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
3a78dbe4
d19eda4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
14 deletions
+7
-14
client/mysqltest.cc
client/mysqltest.cc
+7
-2
mysql-test/t/mysqltest.test
mysql-test/t/mysqltest.test
+0
-12
No files found.
client/mysqltest.cc
View file @
d4854d74
...
...
@@ -3440,12 +3440,17 @@ void do_diff_files(struct st_command *command)
die
(
"command
\"
diff_files
\"
failed, file '%s' does not exist"
,
ds_filename2
.
str
);
if
((
error
=
compare_files
(
ds_filename
.
str
,
ds_filename2
.
str
)))
if
((
error
=
compare_files
(
ds_filename
.
str
,
ds_filename2
.
str
))
&&
match_expected_error
(
command
,
error
,
NULL
)
<
0
)
{
/* Compare of the two files failed, append them to output
so the failure can be analyzed
so the failure can be analyzed, but only if it was not
expected to fail.
*/
show_diff
(
&
ds_res
,
ds_filename
.
str
,
ds_filename2
.
str
);
log_file
.
write
(
&
ds_res
);
log_file
.
flush
();
dynstr_set
(
&
ds_res
,
0
);
}
dynstr_free
(
&
ds_filename
);
...
...
mysql-test/t/mysqltest.test
View file @
d4854d74
...
...
@@ -1710,10 +1710,6 @@ EOF
--
diff_files
$MYSQLTEST_VARDIR
/
tmp
/
diff1
.
tmp
$MYSQLTEST_VARDIR
/
tmp
/
diff2
.
tmp
--
diff_files
$MYSQLTEST_VARDIR
/
tmp
/
diff2
.
tmp
$MYSQLTEST_VARDIR
/
tmp
/
diff1
.
tmp
# Write the below commands to a intermediary file and execute them with
# mysqltest in --exec, since the output will vary depending on what "diff"
# is available it is sent to /dev/null
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
diff
.
test
# Compare files that differ in size
--
error
2
--
diff_files
$MYSQLTEST_VARDIR
/
tmp
/
diff1
.
tmp
$MYSQLTEST_VARDIR
/
tmp
/
diff3
.
tmp
...
...
@@ -1725,13 +1721,6 @@ EOF
--
diff_files
$MYSQLTEST_VARDIR
/
tmp
/
diff1
.
tmp
$MYSQLTEST_VARDIR
/
tmp
/
diff4
.
tmp
--
error
1
--
diff_files
$MYSQLTEST_VARDIR
/
tmp
/
diff4
.
tmp
$MYSQLTEST_VARDIR
/
tmp
/
diff1
.
tmp
exit
;
EOF
# Execute the above diffs, and send their output to /dev/null - only
# interesting to see that it returns correct error codes
--
exec
$MYSQL_TEST
<
$MYSQLTEST_VARDIR
/
tmp
/
diff
.
test
>
/
dev
/
null
2
>&
1
# Compare equal files, again...
--
diff_files
$MYSQLTEST_VARDIR
/
tmp
/
diff1
.
tmp
$MYSQLTEST_VARDIR
/
tmp
/
diff2
.
tmp
...
...
@@ -1740,7 +1729,6 @@ EOF
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
diff2
.
tmp
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
diff3
.
tmp
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
diff4
.
tmp
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
diff
.
test
# ----------------------------------------------------------------------------
...
...
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