summaryrefslogtreecommitdiff
path: root/test/test_pcm_volume.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-09-05 12:19:20 +0200
committerMax Kellermann <max@musicpd.org>2016-09-09 14:44:13 +0200
commitae1eb9ccdeb16183ad3faaf8dbf548b1934889db (patch)
tree17456fa28a7a030cbba445512def9c0bb9f8e306 /test/test_pcm_volume.cxx
parent860064c8128fd12b2ae6a32d399f01fe6390a223 (diff)
pcm/Convert: migrate from class Error to C++ exceptions
Diffstat (limited to 'test/test_pcm_volume.cxx')
-rw-r--r--test/test_pcm_volume.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_pcm_volume.cxx b/test/test_pcm_volume.cxx
index 9cb693d7d..c774af49d 100644
--- a/test/test_pcm_volume.cxx
+++ b/test/test_pcm_volume.cxx
@@ -22,7 +22,6 @@
#include "pcm/Volume.hxx"
#include "pcm/Traits.hxx"
#include "util/ConstBuffer.hxx"
-#include "util/Error.hxx"
#include "test_pcm_util.hxx"
#include <algorithm>
@@ -37,7 +36,7 @@ TestVolume(G g=G())
typedef typename Traits::value_type value_type;
PcmVolume pv;
- CPPUNIT_ASSERT(pv.Open(F, IgnoreError()));
+ pv.Open(F);
constexpr size_t N = 509;
static value_type zero[N];
@@ -96,7 +95,7 @@ void
PcmVolumeTest::TestVolumeFloat()
{
PcmVolume pv;
- CPPUNIT_ASSERT(pv.Open(SampleFormat::FLOAT, IgnoreError()));
+ pv.Open(SampleFormat::FLOAT);
constexpr size_t N = 509;
static float zero[N];