|
17 | 17 | #include "CrashHandler.h" |
18 | 18 | #include <numeric> |
19 | 19 |
|
| 20 | +#if JUCE_MAC |
| 21 | + #include <signal.h> |
| 22 | +#endif |
| 23 | + |
20 | 24 | // Defined in Main.cpp, used to create the file logger as early as possible |
21 | 25 | extern void slaveInitialised(); |
22 | 26 |
|
@@ -274,7 +278,7 @@ static MemoryBlock valueTreeToMemoryBlock (const ValueTree& v) |
274 | 278 | static String toXmlString (const ValueTree& v) |
275 | 279 | { |
276 | 280 | if (auto xml = std::unique_ptr<XmlElement> (v.createXml())) |
277 | | - return xml->createDocument ({}, false, false); |
| 281 | + return xml->toString (XmlElement::TextFormat().withoutHeader()); |
278 | 282 |
|
279 | 283 | return {}; |
280 | 284 | } |
@@ -630,13 +634,13 @@ class ValidatorMasterProcess : public ChildProcessMaster |
630 | 634 | } |
631 | 635 |
|
632 | 636 | /** Triggers validation of a set of PluginDescriptions. */ |
633 | | - void validate (const Array<PluginDescription*>& pluginsToValidate, PluginTests::Options options) |
| 637 | + void validate (const Array<PluginDescription>& pluginsToValidate, PluginTests::Options options) |
634 | 638 | { |
635 | 639 | auto v = createPluginsTree (options); |
636 | 640 |
|
637 | 641 | for (auto pd : pluginsToValidate) |
638 | | - if (auto xml = std::unique_ptr<XmlElement> (pd->createXml())) |
639 | | - v.appendChild ({ IDs::PLUGIN, {{ IDs::pluginDescription, Base64::toBase64 (xml->createDocument ("")) }} }, nullptr); |
| 642 | + if (auto xml = std::unique_ptr<XmlElement> (pd.createXml())) |
| 643 | + v.appendChild ({ IDs::PLUGIN, {{ IDs::pluginDescription, Base64::toBase64 (xml->toString()) }} }, nullptr); |
640 | 644 |
|
641 | 645 | sendValueTreeToSlave (v); |
642 | 646 | } |
@@ -700,7 +704,7 @@ bool Validator::validate (const StringArray& fileOrIDsToValidate, PluginTests::O |
700 | 704 | return true; |
701 | 705 | } |
702 | 706 |
|
703 | | -bool Validator::validate (const Array<PluginDescription*>& pluginsToValidate, PluginTests::Options options) |
| 707 | +bool Validator::validate (const Array<PluginDescription>& pluginsToValidate, PluginTests::Options options) |
704 | 708 | { |
705 | 709 | if (! ensureConnection()) |
706 | 710 | return false; |
|
0 commit comments