summaryrefslogtreecommitdiffstats
path: root/test/midi_ringbuffer_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/midi_ringbuffer_test.cpp')
-rw-r--r--test/midi_ringbuffer_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/midi_ringbuffer_test.cpp b/test/midi_ringbuffer_test.cpp
index cc5cdd5..19aa82f 100644
--- a/test/midi_ringbuffer_test.cpp
+++ b/test/midi_ringbuffer_test.cpp
@@ -20,8 +20,10 @@ read_write_test(EventRingBuffer& rb, unsigned offset)
snprintf(reinterpret_cast<char*>(write_buf), 5, "%d", offset);
size = strlen(reinterpret_cast<const char*>(write_buf));
+#ifndef NDEBUG
const size_t written = rb.write(t, size, write_buf);
assert(written == size);
+#endif
rb.read(&t, &size, read_buf);