diff --git a/testApp/pv/testPVData.cpp b/testApp/pv/testPVData.cpp index 035e5d5..327a9c2 100644 --- a/testApp/pv/testPVData.cpp +++ b/testApp/pv/testPVData.cpp @@ -586,11 +586,18 @@ static void testFieldAccess() }catch(std::runtime_error& e){ testPass("caught expected exception: %s", e.what()); } + + try{ + fld->getAs("hello.world.invalid"); + testFail("missing required exception"); + }catch(std::runtime_error& e){ + testPass("caught expected exception: %s", e.what()); + } } MAIN(testPVData) { - testPlan(235); + testPlan(236); fieldCreate = getFieldCreate(); pvDataCreate = getPVDataCreate(); standardField = getStandardField();