mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
return bool in test util function to check writing xml to file is successful
This commit is contained in:
parent
ee95f05fee
commit
b91fa19fe7
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue