Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
8248953d
Commit
8248953d
authored
Mar 06, 2005
by
Andy Cedilnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
COMP: Remove warning and fix the logic
parent
70b01d45
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
DartConfig.cmake
DartConfig.cmake
+1
-1
Source/CTest/cmCTestSubmit.cxx
Source/CTest/cmCTestSubmit.cxx
+7
-6
Source/cmCTest.cxx
Source/cmCTest.cxx
+6
-1
No files found.
DartConfig.cmake
View file @
8248953d
...
...
@@ -8,7 +8,7 @@ IF(DROP_METHOD MATCHES http)
SET
(
DROP_LOCATION
"/cgi-bin/HTTPUploadDartFile.cgi"
)
ELSE
(
DROP_METHOD MATCHES http
)
IF
(
DROP_METHOD MATCHES xmlrpc
)
SET
(
DROP_SITE
"http://na-mic.org:808
1/Insight
/"
)
SET
(
DROP_SITE
"http://
www.
na-mic.org:808
0
/"
)
SET
(
DROP_LOCATION
"Insight"
)
SET
(
COMPRESS_SUBMISSION ON
)
ELSE
(
DROP_METHOD MATCHES xmlrpc
)
...
...
Source/CTest/cmCTestSubmit.cxx
View file @
8248953d
...
...
@@ -558,7 +558,6 @@ bool cmCTestSubmit::SubmitUsingXMLRPC(const cmStdString& localprefix,
const
cmStdString
&
url
)
{
xmlrpc_env
env
;
xmlrpc_value
*
result
;
std
::
string
ctestVersion
=
cmVersion
::
GetCMakeVersion
();
const
char
*
state_name
;
...
...
@@ -576,6 +575,8 @@ bool cmCTestSubmit::SubmitUsingXMLRPC(const cmStdString& localprefix,
int
cnt
=
32
;
for
(
it
=
files
.
begin
();
it
!=
files
.
end
();
++
it
)
{
xmlrpc_value
*
result
;
std
::
string
local_file
=
localprefix
+
"/"
+
*
it
;
std
::
cout
<<
"Submit file: "
<<
local_file
.
c_str
()
<<
std
::
endl
;
struct
stat
st
;
...
...
@@ -592,15 +593,15 @@ bool cmCTestSubmit::SubmitUsingXMLRPC(const cmStdString& localprefix,
{
return
false
;
}
unsigned
char
*
fileBuffer
=
new
unsigned
char
[
fileSize
];
unsigned
char
*
encodedFileBuffer
=
new
unsigned
char
[
encodedSize
];
if
(
fread
(
fileBuffer
,
1
,
fileSize
,
fp
)
!=
fileSize
)
{
delete
[]
fileBuffer
;
delete
[]
encodedFileBuffer
;
return
false
;
fclose
(
fp
);
return
false
;
}
fclose
(
fp
);
...
...
@@ -649,10 +650,10 @@ bool cmCTestSubmit::SubmitUsingXMLRPC(const cmStdString& localprefix,
}
printf
(
"%s
\n
"
,
state_name
);
}
/* Dispose of our result value. */
xmlrpc_DECREF
(
result
);
/* Dispose of our result value. */
xmlrpc_DECREF
(
result
);
}
/* Clean up our error-handling environment. */
xmlrpc_env_clean
(
&
env
);
...
...
Source/cmCTest.cxx
View file @
8248953d
...
...
@@ -694,7 +694,7 @@ int cmCTest::SubmitResults()
ofs
<<
" Submission succesfull"
<<
std
::
endl
;
return
1
;
}
else
else
if
(
m_DartConfiguration
[
"DropMethod"
]
==
"scp"
)
{
std
::
string
url
;
if
(
m_DartConfiguration
[
"DropSiteUser"
].
size
()
>
0
)
...
...
@@ -713,6 +713,11 @@ int cmCTest::SubmitResults()
std
::
cout
<<
" Submission successfull"
<<
std
::
endl
;
ofs
<<
" Submission succesfull"
<<
std
::
endl
;
}
else
{
std
::
cout
<<
" Unknown submission method:
\"
"
<<
m_DartConfiguration
[
"DropMethod"
]
<<
"
\"
"
<<
std
::
endl
;
return
0
;
}
return
0
;
}
...
...
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