From 566d2116ed4d62d590faf2a80e2f2c8248f9eb6b Mon Sep 17 00:00:00 2001 From: "benjamin.franksen" <benjamin.franksen@helmholtz-berlin.de> Date: Fri, 4 Oct 2013 02:09:18 +0000 Subject: [PATCH] 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. --- test/validate/pvGetCancel.st | 1 + test/validate/pvSync.st | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/test/validate/pvGetCancel.st b/test/validate/pvGetCancel.st index 16ddc67c..595de378 100644 --- a/test/validate/pvGetCancel.st +++ b/test/validate/pvGetCancel.st @@ -7,6 +7,7 @@ in the file LICENSE that is included with this distribution. program pvGetCancelTest /* option +s; */ +option +p; %%#include "../testSupport.h" diff --git a/test/validate/pvSync.st b/test/validate/pvSync.st index 8096910c..517c7f97 100644 --- a/test/validate/pvSync.st +++ b/test/validate/pvSync.st @@ -8,7 +8,7 @@ program pvSyncTest %%#include "../testSupport.h" -option +s; +option +sp; #define NTESTS 1000 @@ -31,7 +31,7 @@ sync i to ef_i; sync a to ef_a; entry { - seq_test_init(4*NTESTS); + seq_test_init(5*NTESTS); pvSync(x,ef_x); efSet(ef_putx); efClear(ef_i); @@ -68,15 +68,13 @@ ss pvSyncY { pvSync(a, ef_a); testDiag("after pvSync(a, ef_a)"); a[i] = i; - testOk1(pvPut(a)==pvStatOK); + testOk1(pvPut(a[i])==pvStatOK); testDiag("after pvPut(a[i])"); } state pvUnsync } state pvUnsync { when (efTestAndClear(ef_a) && testOk1(a[i]==i)) { -#if 0 testOk1(a[i]==i); -#endif if (i >= NTESTS-1) { state done; } -- GitLab