From bf571f6eb2e34ce826761528c369b6d6a67aae07 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Sat, 23 May 2026 17:48:22 -0700 Subject: [PATCH] test: check that UTAG is propagated by pvalink --- test/testpvalink.cpp | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/test/testpvalink.cpp b/test/testpvalink.cpp index a486937..efa7831 100644 --- a/test/testpvalink.cpp +++ b/test/testpvalink.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -342,6 +343,9 @@ namespace { src->tse = epicsTimeEventDeviceTime; src->time.secPastEpoch = 0x12345678; src->time.nsec = 0x10203040; +#ifdef dbGetTimeStampTag + src->utag = 0x00010002; +#endif src->val = 7; #ifdef HAS_ALARM_MESSAGE strcpy(src->amsg, "Test"); @@ -353,7 +357,6 @@ namespace { long ret, nelem; epicsEnum16 stat, sevr; - epicsTimeStamp time; char egu[10] = ""; short prec; double val, lolo, low, high, hihi; @@ -384,9 +387,29 @@ namespace { testSkip(1, "No AMSG"); #endif - testTrue((ret=dbGetTimeStamp(&inp->inp, &time))==0 - && time.secPastEpoch==0 && time.nsec==0) - <<" ret="<inp, &time))==0 - && time.secPastEpoch==0x12345678 && time.nsec==0x10203040) - <<" ret="<