mirror of
https://github.com/preble/libpinproc
synced 2026-02-24 18:25:23 +01:00
pinproctest now checks return value of LoadConfiguration().
This commit is contained in:
@@ -405,7 +405,11 @@ int main(int argc, const char **argv)
|
||||
PRLogSetCallback(TestLogger);
|
||||
|
||||
YAML::Node yamlDoc;
|
||||
LoadConfiguration(yamlDoc, yamlFilename);
|
||||
if (LoadConfiguration(yamlDoc, yamlFilename) != kPRSuccess)
|
||||
{
|
||||
fprintf(stderr, "Failed to load configuration file %s\n", yamlFilename);
|
||||
return 1;
|
||||
}
|
||||
|
||||
PRMachineType machineType = kPRMachineInvalid;
|
||||
std::string machineTypeString;
|
||||
|
||||
Reference in New Issue
Block a user