[beast: 24/43] TESTS: use test_error() for failing tests
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 24/43] TESTS: use test_error() for failing tests
- Date: Mon, 26 Jun 2017 23:29:19 +0000 (UTC)
commit 99aa4c8acfeaa6b63f26baee9029091f127bd966
Author: Tim Janik <timj gnu org>
Date: Sun Jun 25 18:44:17 2017 +0200
TESTS: use test_error() for failing tests
Signed-off-by: Tim Janik <timj gnu org>
tests/latency/bselatencytest.cc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tests/latency/bselatencytest.cc b/tests/latency/bselatencytest.cc
index 474e675..27fd2cd 100644
--- a/tests/latency/bselatencytest.cc
+++ b/tests/latency/bselatencytest.cc
@@ -1,5 +1,6 @@
// Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
#include "bselatencytest.genidl.hh"
+#include <sfi/sfitests.hh>
#include <sys/time.h>
#include <string>
#include <errno.h>
@@ -75,14 +76,14 @@ class LatencyTest : public LatencyTestBase {
if (Rapicorn::Path::check (midi_output_name, "pw")) /* writable pipe */
midi_output_file = fopen (midi_output_name.c_str(), "w");
if (!midi_output_file)
- sfi_error ("failed to open midi output \"%s\": %s\n", midi_output_name.c_str(), g_strerror (errno));
+ test_error ("failed to open midi output \"%s\": %s\n", midi_output_name.c_str(), g_strerror (errno));
if (logfile_name == "" || !midi_output_file)
logfile = stdout;
else
{
logfile = fopen (logfile_name.c_str(), "w");
if (!logfile)
- sfi_error ("failed to open log file \"%s\": %s\n", logfile_name.c_str(), g_strerror (errno));
+ test_error ("failed to open log file \"%s\": %s\n", logfile_name.c_str(), g_strerror (errno));
}
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]