summaryrefslogtreecommitdiff
path: root/gnuradio-core
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-core')
-rw-r--r--gnuradio-core/src/guile/tests/00_runtime_basics.test14
-rw-r--r--gnuradio-core/src/lib/runtime/gr_top_block.i2
2 files changed, 3 insertions, 13 deletions
diff --git a/gnuradio-core/src/guile/tests/00_runtime_basics.test b/gnuradio-core/src/guile/tests/00_runtime_basics.test
index 15bf9cb3f..18b298f22 100644
--- a/gnuradio-core/src/guile/tests/00_runtime_basics.test
+++ b/gnuradio-core/src/guile/tests/00_runtime_basics.test
@@ -108,14 +108,6 @@
(gr:connect tb src op (gr:ep dst 1)))
))
-#!
-;;; FIXME currently triggers core dump.
-;;; The problem is that swig isn't paying attention to
-;;; this throw declaration:
-;;;
-;;; gr_top_block.i:
-;;; void start() throw (std::runtime_error);
-;;;
(with-test-prefix "gr_top_block::start throw"
(let* ((src-data #(-5 -4 -3 -2 -1 0 1 2 3 4 5))
(expected-result (vector-map (lambda (x) (* x 2)) src-data))
@@ -127,12 +119,10 @@
;; We deliberately don't connect op's output
(gr:connect tb src op)
- ;; Which should lead to an exception here...
- ;; but currently triggers a core dump.
- (pass-if-throw "throws std::runtime_error" #t
+ ;; Which will lead to an exception here...
+ (pass-if-throw "throws std::runtime_error" 'swig-exception
(gr:run tb))
))
-!#
(with-test-prefix "io-signature-1"
(let ((ios1 (gr:io-signature 1 2 8))
diff --git a/gnuradio-core/src/lib/runtime/gr_top_block.i b/gnuradio-core/src/lib/runtime/gr_top_block.i
index d9adf1e18..f18d8890b 100644
--- a/gnuradio-core/src/lib/runtime/gr_top_block.i
+++ b/gnuradio-core/src/lib/runtime/gr_top_block.i
@@ -43,7 +43,7 @@ public:
void start() throw (std::runtime_error);
void stop();
void wait();
- void run();
+ void run() throw (std::runtime_error);
void lock();
void unlock() throw (std::runtime_error);
void dump();