From 37b0da68d021530012f17e86b4754d109977ba76 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Fri, 27 Jun 2014 18:45:46 +0200 Subject: spi: Add coverage tests for all exceptions. --- decoders/spi/test/test.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'decoders/spi/test') diff --git a/decoders/spi/test/test.conf b/decoders/spi/test/test.conf index 57e0be7..53edfeb 100644 --- a/decoders/spi/test/test.conf +++ b/decoders/spi/test/test.conf @@ -31,3 +31,13 @@ test count_miso_lsb input spi/spi-count-lsb.sr output spi annotation class mosi-data match spi_count_miso_lsb.output +test exception_samplerate + protocol-decoder spi + input misc/no-samplerate.sr + output spi exception match SamplerateError + +test exception_missing_datapins + protocol-decoder spi channel cs=1 channel clk=0 + input spi/spi-count-msb.sr + output spi exception match MissingDataError + -- cgit v1.2.3-70-g09d2