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
39a069b2
Commit
39a069b2
authored
Oct 05, 2007
by
msvensson@shellback.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#31398 problems with mysql-test-run, part2
Write .reject file to r/ if it's writable else use opt_logdir
parent
626faeec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
client/mysqltest.c
client/mysqltest.c
+15
-4
No files found.
client/mysqltest.c
View file @
39a069b2
...
...
@@ -1580,10 +1580,21 @@ void check_result(DYNAMIC_STRING* ds)
and then show the diff
*/
char
reject_file
[
FN_REFLEN
];
str_to_file
(
fn_format
(
reject_file
,
result_file_name
,
opt_logdir
,
".reject"
,
*
opt_logdir
?
MY_REPLACE_DIR
|
MY_REPLACE_EXT
:
MY_REPLACE_EXT
),
ds
->
str
,
ds
->
length
);
dirname_part
(
reject_file
,
result_file_name
);
if
(
access
(
reject_file
,
W_OK
)
==
0
)
{
/* Result file directory is writable, save reject file there */
fn_format
(
reject_file
,
result_file_name
,
NULL
,
".reject"
,
MY_REPLACE_EXT
);
}
else
{
/* Put reject file in opt_logdir */
fn_format
(
reject_file
,
result_file_name
,
opt_logdir
,
".reject"
,
MY_REPLACE_DIR
|
MY_REPLACE_EXT
);
}
str_to_file
(
reject_file
,
ds
->
str
,
ds
->
length
);
dynstr_set
(
ds
,
NULL
);
/* Don't create a .log file */
...
...
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