diff options
author | Bert Vermeulen <bert@biot.com> | 2014-06-27 18:45:46 +0200 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2014-06-27 18:45:46 +0200 |
commit | 37b0da68d021530012f17e86b4754d109977ba76 (patch) | |
tree | cedc10bf4140d404994ad48e695fe44f02b56e8c /decoders/spi/test | |
parent | 7ea7c017c334ebb466923f6e9fef9ef72e157676 (diff) | |
download | libsigrokdecode-37b0da68d021530012f17e86b4754d109977ba76.tar.gz libsigrokdecode-37b0da68d021530012f17e86b4754d109977ba76.zip |
spi: Add coverage tests for all exceptions.
Diffstat (limited to 'decoders/spi/test')
-rw-r--r-- | decoders/spi/test/test.conf | 10 |
1 files changed, 10 insertions, 0 deletions
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 + |