projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e65ff35
)
Added assertions to confirm that the session was terminated cleanly
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Mon, 29 Apr 2013 17:22:54 +0000
(18:22 +0100)
committer
Bert Vermeulen
<bert@biot.com>
Wed, 1 May 2013 21:47:21 +0000
(23:47 +0200)
pv/sigsession.cpp
patch
|
blob
|
history
diff --git
a/pv/sigsession.cpp
b/pv/sigsession.cpp
index c5a7d494ecf8ed55237b4c440bd3f4497e72c398..4fe51dd57131682ae11c31f45eb85f6aee4de461 100644
(file)
--- a/
pv/sigsession.cpp
+++ b/
pv/sigsession.cpp
@@
-166,6
+166,10
@@
void SigSession::load_thread_proc(const string name,
sr_session_destroy();
set_capture_state(Stopped);
+
+ // Confirm that SR_DF_END was received
+ assert(!_cur_logic_snapshot);
+ assert(!_cur_analog_snapshot);
}
void SigSession::sample_thread_proc(struct sr_dev_inst *sdi,
@@
-204,6
+208,10
@@
void SigSession::sample_thread_proc(struct sr_dev_inst *sdi,
sr_session_destroy();
set_capture_state(Stopped);
+
+ // Confirm that SR_DF_END was received
+ assert(!_cur_logic_snapshot);
+ assert(!_cur_analog_snapshot);
}
void SigSession::feed_in_header(const sr_dev_inst *sdi)