[beast: 21/43] BSE: tests: use test_error() for failing tests
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 21/43] BSE: tests: use test_error() for failing tests
- Date: Mon, 26 Jun 2017 23:29:04 +0000 (UTC)
commit 1043e2169da2f187d8816cc94c8f4cd560afde83
Author: Tim Janik <timj gnu org>
Date: Sun Jun 25 18:37:32 2017 +0200
BSE: tests: use test_error() for failing tests
Signed-off-by: Tim Janik <timj gnu org>
bse/tests/loophandle.cc | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/bse/tests/loophandle.cc b/bse/tests/loophandle.cc
index e0aa738..b6e2843 100644
--- a/bse/tests/loophandle.cc
+++ b/bse/tests/loophandle.cc
@@ -1,4 +1,5 @@
// Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
+#include <sfi/sfitests.hh>
#include <bse/gsldatahandle.hh>
#include <bse/gsldatautils.hh>
#include <bse/bse.hh>
@@ -159,14 +160,14 @@ check_loop (GslDataHandle *src_handle,
error = gsl_data_handle_open (loop_handle);
if (error != 0)
{
- sfi_error ("loop_handle open failed: %s", bse_error_blurb (error));
+ test_error ("loop_handle open failed: %s", bse_error_blurb (error));
exit (1);
}
error = gsl_data_handle_open (loop_handle_reference);
if (error != 0)
{
- sfi_error ("loop_handle_reference open failed: %s", bse_error_blurb (error));
+ test_error ("loop_handle_reference open failed: %s", bse_error_blurb (error));
exit (1);
}
@@ -178,7 +179,7 @@ check_loop (GslDataHandle *src_handle,
if (a != b)
{
- sfi_error ("bad read in loop<%lld,%lld> position %lld: a = %f, b = %f", loop_start, loop_end, i, a,
b);
+ test_error ("bad read in loop<%lld,%lld> position %lld: a = %f, b = %f", loop_start, loop_end, i,
a, b);
exit (1);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]