Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sequencer-2-2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
epics-modules
sequencer-2-2
Commits
6a8b12d9
Commit
6a8b12d9
authored
13 years ago
by
ben.franksen
Browse files
Options
Downloads
Patches
Plain Diff
run tests on vxWorks with lowered priority, too
parent
28d4f50a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/validate/makeStCmd.pl
+6
-4
6 additions, 4 deletions
test/validate/makeStCmd.pl
test/validate/testSupport.c
+6
-4
6 additions, 4 deletions
test/validate/testSupport.c
test/validate/testSupport.h
+1
-1
1 addition, 1 deletion
test/validate/testSupport.h
with
13 additions
and
9 deletions
test/validate/makeStCmd.pl
+
6
−
4
View file @
6a8b12d9
print
"
testHarness
\n
";
foreach
my
$x
(
@ARGV
)
{
print
"
run_seq_test
\
&
${x}
Test
\n
"
}
foreach
my
$x
(
@ARGV
)
{
print
"
run_seq_test
\
&
${x}
Test, 1
\n
"
print
"
# ...with lowered priority
\n
";
print
"
run_seq_test
\
&
${x}
Test, -1
\n
";
print
"
# ...with normal priority
\n
";
print
"
run_seq_test
\
&
${x}
Test
\n
";
print
"
# ...with raised priority
\n
";
print
"
run_seq_test
\
&
${x}
Test, 1
\n
";
}
print
"
epicsExit
\n
";
This diff is collapsed.
Click to expand it.
test/validate/testSupport.c
+
6
−
4
View file @
6a8b12d9
...
...
@@ -14,7 +14,7 @@ in the file LICENSE that is included with this distribution.
static
epicsEventId
this_test_done
;
static
seqProgram
*
prog
;
int
seq_test_
raise
_priority
;
int
seq_test_
adapt
_priority
;
static
int
doit
(
void
)
{
...
...
@@ -22,9 +22,9 @@ static int doit(void)
return
0
;
}
void
run_seq_test
(
seqProgram
*
seqProg
,
int
raise
_priority
)
void
run_seq_test
(
seqProgram
*
seqProg
,
int
adapt
_priority
)
{
seq_test_
raise
_priority
=
raise
_priority
;
seq_test_
adapt
_priority
=
adapt
_priority
;
if
(
!
this_test_done
)
{
this_test_done
=
epicsEventMustCreate
(
epicsEventEmpty
);
}
...
...
@@ -36,8 +36,10 @@ void run_seq_test(seqProgram *seqProg, int raise_priority)
void
seq_test_init
(
int
num_tests
)
{
testPlan
(
num_tests
);
if
(
seq_test_
raise
_priority
)
{
if
(
seq_test_
adapt
_priority
>
0
)
{
epicsThreadSetPriority
(
epicsThreadGetIdSelf
(),
epicsThreadPriorityHigh
);
}
else
if
(
seq_test_adapt_priority
<
0
)
{
epicsThreadSetPriority
(
epicsThreadGetIdSelf
(),
epicsThreadPriorityLow
);
}
}
...
...
This diff is collapsed.
Click to expand it.
test/validate/testSupport.h
+
1
−
1
View file @
6a8b12d9
...
...
@@ -11,7 +11,7 @@ in the file LICENSE that is included with this distribution.
#include
"epicsMutex.h"
#include
"epicsUnitTest.h"
void
run_seq_test
(
seqProgram
*
seqProg
,
int
raise
_priority
);
void
run_seq_test
(
seqProgram
*
seqProg
,
int
adapt
_priority
);
void
seq_test_init
(
int
num_tests
);
void
seq_test_done
(
void
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment