From 6641e7f5d182f48258b4340c1ff8070abc2b4df0 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 23 Nov 2015 14:33:43 -0500 Subject: [PATCH] fix testCreateRequest field names may not begin with a digit --- testApp/copy/testCreateRequest.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/testApp/copy/testCreateRequest.cpp b/testApp/copy/testCreateRequest.cpp index d183bb1..616c6d1 100644 --- a/testApp/copy/testCreateRequest.cpp +++ b/testApp/copy/testCreateRequest.cpp @@ -216,8 +216,8 @@ static void testCreateRequestInternal() { testPass("request %s",request.c_str()); request = string("field(alarm,timeStamp,supply{") - + "0{voltage.value,current.value,power.value}," - + "1{voltage.value,current.value,power.value}" + + "zero{voltage.value,current.value,power.value}," + + "one{voltage.value,current.value,power.value}" + "})"; if(debug) { cout << "request " << request <createRequest(request); @@ -226,12 +226,12 @@ static void testCreateRequestInternal() { testOk1(pvRequest.get()!=NULL); testOk1(pvRequest->getSubField("field.alarm").get()!=NULL); testOk1(pvRequest->getSubField("field.timeStamp").get()!=NULL); - testOk1(pvRequest->getSubField("field.supply.0.voltage.value").get()!=NULL); - testOk1(pvRequest->getSubField("field.supply.0.current.value").get()!=NULL); - testOk1(pvRequest->getSubField("field.supply.0.power.value").get()!=NULL); - testOk1(pvRequest->getSubField("field.supply.1.voltage.value").get()!=NULL); - testOk1(pvRequest->getSubField("field.supply.1.current.value").get()!=NULL); - testOk1(pvRequest->getSubField("field.supply.1.power.value").get()!=NULL); + testOk1(pvRequest->getSubField("field.supply.zero.voltage.value").get()!=NULL); + testOk1(pvRequest->getSubField("field.supply.zero.current.value").get()!=NULL); + testOk1(pvRequest->getSubField("field.supply.zero.power.value").get()!=NULL); + testOk1(pvRequest->getSubField("field.supply.one.voltage.value").get()!=NULL); + testOk1(pvRequest->getSubField("field.supply.one.current.value").get()!=NULL); + testOk1(pvRequest->getSubField("field.supply.one.power.value").get()!=NULL); testPass("request %s",request.c_str()); request = string("record[process=true,xxx=yyy]")