diff base/test/svcore-base-test.cpp @ 1601:a090221caeda bqaudiostream

Fix incorrect number formatting results for 32-bit MinGW build
author Chris Cannam
date Wed, 30 Jan 2019 11:00:45 +0000
parents f04038819c26
children 23a29e5dc0e9
line wrap: on
line diff
--- a/base/test/svcore-base-test.cpp	Wed Jan 23 14:43:43 2019 +0000
+++ b/base/test/svcore-base-test.cpp	Wed Jan 30 11:00:45 2019 +0000
@@ -21,6 +21,8 @@
 #include "TestColumnOp.h"
 #include "TestMovingMedian.h"
 
+#include "system/Init.h"
+
 #include <QtTest>
 
 #include <iostream>
@@ -29,6 +31,10 @@
 {
     int good = 0, bad = 0;
 
+    // This is necessary to ensure correct behaviour of snprintf with
+    // older MinGW implementations
+    svSystemSpecificInitialisation();
+
     QCoreApplication app(argc, argv);
     app.setOrganizationName("sonic-visualiser");
     app.setApplicationName("test-svcore-base");