Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
b7308e8f
Commit
b7308e8f
authored
Jan 11, 2003
by
Andy Cedilnik
Browse files
Fix time output and add triggering
parent
6beecfa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmCTest.cxx
View file @
b7308e8f
...
...
@@ -44,7 +44,12 @@ static std::string CleanString(std::string str)
static
std
::
string
CurrentTime
()
{
time_t
currenttime
=
time
(
0
);
return
::
CleanString
(
ctime
(
&
currenttime
));
struct
tm
*
t
=
localtime
(
&
currenttime
);
//return ::CleanString(ctime(¤ttime));
char
current_time
[
1024
];
strftime
(
current_time
,
1000
,
"%a %b %e %T %Z %Y"
,
t
);
//std::cout << "Current_Time: " << current_time << std::endl;
return
::
CleanString
(
current_time
);
}
static
const
char
*
cmCTestErrorMatches
[]
=
{
...
...
@@ -1399,7 +1404,15 @@ int cmCTest::SubmitResults()
m_DartConfiguration
[
"DropSitePassword"
]
+
"@"
+
m_DartConfiguration
[
"DropSite"
]
+
m_DartConfiguration
[
"DropLocation"
];
submit
.
SubmitUsingFTP
(
m_ToplevelPath
+
"/Testing/CDart"
,
files
,
prefix
,
url
);
if
(
!
submit
.
SubmitUsingFTP
(
m_ToplevelPath
+
"/Testing/CDart"
,
files
,
prefix
,
url
)
)
{
return
0
;
}
if
(
!
submit
.
TriggerUsingHTTP
(
files
,
prefix
,
m_DartConfiguration
[
"TriggerSite"
])
)
{
return
0
;
}
return
1
;
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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