return bool in test util function to check writing xml to file is successful

This commit is contained in:
Tim Mayberry 2013-08-10 18:26:47 +10:00
parent ee95f05fee
commit b91fa19fe7
2 changed files with 3 additions and 3 deletions

View file

@ -60,12 +60,12 @@ check_xml (XMLNode* node, string ref_file, list<string> const & ignore_propertie
check_nodes (p, q, ignore_properties); check_nodes (p, q, ignore_properties);
} }
void bool
write_ref (XMLNode* node, string ref_file) write_ref (XMLNode* node, string ref_file)
{ {
XMLTree ref; XMLTree ref;
ref.set_root (node); ref.set_root (node);
ref.write (ref_file); return ref.write (ref_file);
} }
class TestReceiver : public Receiver class TestReceiver : public Receiver

View file

@ -8,5 +8,5 @@ namespace ARDOUR {
} }
extern void check_xml (XMLNode *, std::string, std::list<std::string> const &); extern void check_xml (XMLNode *, std::string, std::list<std::string> const &);
extern void write_ref (XMLNode *, std::string); extern bool write_ref (XMLNode *, std::string);
extern ARDOUR::Session* load_session (std::string, std::string); extern ARDOUR::Session* load_session (std::string, std::string);