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

test: added +p option to pvGetCancel.st and pvSync.st

Also fixed/extended pvSync.st by adding an index to the argument of the
pvPut call.
parent be184f19
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ in the file LICENSE that is included with this distribution. ...@@ -7,6 +7,7 @@ in the file LICENSE that is included with this distribution.
program pvGetCancelTest program pvGetCancelTest
/* option +s; */ /* option +s; */
option +p;
%%#include "../testSupport.h" %%#include "../testSupport.h"
......
...@@ -8,7 +8,7 @@ program pvSyncTest ...@@ -8,7 +8,7 @@ program pvSyncTest
%%#include "../testSupport.h" %%#include "../testSupport.h"
option +s; option +sp;
#define NTESTS 1000 #define NTESTS 1000
...@@ -31,7 +31,7 @@ sync i to ef_i; ...@@ -31,7 +31,7 @@ sync i to ef_i;
sync a to ef_a; sync a to ef_a;
entry { entry {
seq_test_init(4*NTESTS); seq_test_init(5*NTESTS);
pvSync(x,ef_x); pvSync(x,ef_x);
efSet(ef_putx); efSet(ef_putx);
efClear(ef_i); efClear(ef_i);
...@@ -68,15 +68,13 @@ ss pvSyncY { ...@@ -68,15 +68,13 @@ ss pvSyncY {
pvSync(a, ef_a); pvSync(a, ef_a);
testDiag("after pvSync(a, ef_a)"); testDiag("after pvSync(a, ef_a)");
a[i] = i; a[i] = i;
testOk1(pvPut(a)==pvStatOK); testOk1(pvPut(a[i])==pvStatOK);
testDiag("after pvPut(a[i])"); testDiag("after pvPut(a[i])");
} state pvUnsync } state pvUnsync
} }
state pvUnsync { state pvUnsync {
when (efTestAndClear(ef_a) && testOk1(a[i]==i)) { when (efTestAndClear(ef_a) && testOk1(a[i]==i)) {
#if 0
testOk1(a[i]==i); testOk1(a[i]==i);
#endif
if (i >= NTESTS-1) { if (i >= NTESTS-1) {
state done; state done;
} }
......
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