fail zero length field names

This commit is contained in:
Michael Davidsaver
2015-09-24 13:04:49 -04:00
parent f24f565e58
commit 3714be4f16
2 changed files with 9 additions and 3 deletions

View File

@@ -79,6 +79,7 @@ static void testCreatePVStructureWithInvalidName()
fieldNames,pvFields);
testFail("Creation of invalid field name '%s' was allowed", fieldNames[1].c_str());
} catch(std::invalid_argument& e) {
testDiag("Exception: \"%s\"", e.what());
testPass("Creation of invalid field name '%s' fails as expected", fieldNames[1].c_str());
}
}