Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
0bcc47f4
Commit
0bcc47f4
authored
Jul 18, 2011
by
Markus Kauppila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Harness warns about tests that request timeout when it's not
available.
parent
9db859c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
plain_logger.c
test/test-automation/plain_logger.c
+1
-8
runner.c
test/test-automation/runner.c
+3
-0
No files found.
test/test-automation/plain_logger.c
View file @
0bcc47f4
...
...
@@ -2,10 +2,6 @@
#ifndef _PLAIN_LOGGER
#define _PLAIN_LOGGER
#include <stdio.h>
#include <SDL/SDL.h>
#include "logger_helpers.h"
#include "plain_logger.h"
#include "SDL_test.h"
...
...
@@ -21,13 +17,11 @@ static int indentLevel;
int
Output
(
const
int
currentIndentLevel
,
const
char
*
message
,
...)
{
int
ident
=
0
;
for
(
;
ident
<
currentIndentLevel
;
++
ident
)
{
fprintf
(
stdout
,
" "
);
// \todo make configurable?
}
char
buffer
[
1024
];
memset
(
buffer
,
0
,
1024
);
...
...
@@ -38,7 +32,6 @@ Output(const int currentIndentLevel, const char *message, ...)
va_end
(
list
);
fprintf
(
stdout
,
"%s
\n
"
,
buffer
);
fflush
(
stdout
);
}
...
...
@@ -145,7 +138,7 @@ PlainAssertSummary(int numAsserts, int numAssertsFailed, int numAssertsPass, tim
void
PlainLog
(
const
char
*
logMessage
,
time_t
eventTime
)
{
Output
(
indentLevel
,
"%s
%d"
,
logMessage
,
TimestampToString
(
eventTime
)
);
Output
(
indentLevel
,
"%s
"
,
logMessage
);
}
#endif
test/test-automation/runner.c
View file @
0bcc47f4
...
...
@@ -632,6 +632,9 @@ ExecuteTest(TestCase *testItem) {
int
retVal
=
-
1
;
if
(
execute_inproc
)
{
if
(
testItem
->
timeout
>
0
)
{
Log
(
"Test asked for timeout which is not supported."
,
time
(
0
));
}
retVal
=
RunTest
(
testItem
);
}
else
{
int
childpid
=
fork
();
...
...
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