Skip to content
Snippets Groups Projects
Commit bebcc277 authored by benjamin.franksen's avatar benjamin.franksen
Browse files

test: make pvGetCancel run more often

parent cdaf71ab
No related branches found
No related tags found
No related merge requests found
...@@ -10,8 +10,10 @@ program pvGetCancelTest ...@@ -10,8 +10,10 @@ program pvGetCancelTest
%%#include "../testSupport.h" %%#include "../testSupport.h"
#define NRUNS 50
entry { entry {
seq_test_init(8); seq_test_init(8*NRUNS);
testDiag("start"); testDiag("start");
} }
...@@ -21,12 +23,22 @@ ss pvGetCancel { ...@@ -21,12 +23,22 @@ ss pvGetCancel {
assign x to { "pvGetCancel1", "pvGetCancel2"}; assign x to { "pvGetCancel1", "pvGetCancel2"};
assign y to { "pvGetCancel1", "pvGetCancel2"}; assign y to { "pvGetCancel1", "pvGetCancel2"};
typename pvStat status; typename pvStat status;
int n = 0;
state done {
when (n < NRUNS) {
n++;
} state test
when (delay(0.2)) {
} exit
}
state test { state test {
entry { entry {
testOk1(pvGet(x[0],ASYNC) == pvStatOK); testOk1(pvGet(x[0],ASYNC) == pvStatOK);
testOk1(pvGet(x[1],ASYNC) == pvStatOK); testOk1(pvGet(x[1],ASYNC) == pvStatOK);
pvGetCancel(x); pvGetCancel(x);
x[0] = x[1] = 0;
y[0] = y[1] = 1;
testOk1(pvPut(y[0],SYNC) == pvStatOK); testOk1(pvPut(y[0],SYNC) == pvStatOK);
testOk1(pvPut(y[1],SYNC) == pvStatOK); testOk1(pvPut(y[1],SYNC) == pvStatOK);
testOk1(pvGet(x[0],ASYNC) == pvStatOK); testOk1(pvGet(x[0],ASYNC) == pvStatOK);
...@@ -41,10 +53,6 @@ ss pvGetCancel { ...@@ -41,10 +53,6 @@ ss pvGetCancel {
testOk1(x[1] == y[1]); testOk1(x[1] == y[1]);
} state done } state done
} }
state done {
when (delay(0.2)) {
} exit
}
} }
exit { exit {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment