# Make test error

**URL:** <https://www.ruby-forum.com/t/make-test-error/231986>\
**Category:** GNU Radio\
**Created:** [September 11, 2014, 4:41am UTC](https://www.ruby-forum.com/t/make-test-error/231986 "2014-09-11T04:41:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [September 11, 2014, 4:41am UTC](https://www.ruby-forum.com/t/make-test-error/231986/1 "2014-09-11T04:41:50Z")

</div>

hi,  
When I follow Gnuradio using “make test” and “ctest” to test my new  
how-to block, it returns RuntimeError: square\_ff(6): insufficient  
connected output ports (1 needed, 0 connected)

As the following messages, I think there may be something wrong with the  
test program “qa\_square\_ff.py”

lab@lab-ThinkPad-Edge-E430:~/newblock/gr-howto/build$ ctest -V -R square  
UpdateCTestConfiguration from  
:/home/lab/newblock/gr-howto/build/DartConfiguration.tcl  
UpdateCTestConfiguration from  
:/home/lab/newblock/gr-howto/build/DartConfiguration.tcl  
Test project /home/lab/newblock/gr-howto/build  
Constructing a list of tests  
Done constructing a list of tests  
Checking test dependency graph…  
Checking test dependency graph end  
test 2  
Start 2: qa\_square\_ff

# 2: Test command: /bin/sh “/home/lab/newblock/gr-howto/build/python/qa\_square\_ff\_test.sh” 2: Test timeout computed to be: 9.99988e+06 2: E 2:

## 2: ERROR: test\_001\_t ( **main**.qa\_square\_ff) 2:

## 2: Traceback (most recent call last): 2: File “/home/lab/newblock/gr-howto/python/qa\_square\_ff.py”, line 43, in test\_001\_t 2: self.tb.run () 2: File “/usr/lib/python2.7/dist-packages/gnuradio/gr/top\_block.py”, line 109, in run 2: self.start(max\_noutput\_items) 2: File “/usr/lib/python2.7/dist-packages/gnuradio/gr/top\_block.py”, line 103, in start 2: top\_block\_start\_unlocked(self.\_tb, max\_noutput\_items) 2: File “/usr/lib/python2.7/dist-packages/gnuradio/gr/runtime\_swig.py”, line 4585, in top\_block\_start\_unlocked 2: return \_runtime\_swig.top\_block\_start\_unlocked(\*args, \*\*kwargs) 2: RuntimeError: square\_ff(6): insufficient connected output ports (1 needed, 0 connected) 2: 2:

2: Ran 1 test in 0.000s  
2:  
2: FAILED (errors=1)  
1/1 Test #2: qa\_square\_ff …\*\*\*Failed 0.17 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) = 0.17 sec

The following tests FAILED:  
2 - qa\_square\_ff (Failed)  
Errors while running CTest

lab@lab-ThinkPad-Edge-E430:~/newblock/gr-howto/build$ make test  
Running tests…  
Test project /home/lab/newblock/gr-howto/build  
Start 1: test\_howto  
1/2 Test #1: test\_howto … Passed 0.00 sec  
Start 2: qa\_square\_ff  
2/2 Test #2: qa\_square\_ff …\*\*\*Failed 0.18 sec

50% tests passed, 1 tests failed out of 2

Total Test time (real) = 0.19 sec

The following tests FAILED:  
2 - qa\_square\_ff (Failed)  
Errors while running CTest  
make: \*\*\* [test] 8

---

<div class="post-metadata">

**Author:** ![zhangwen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/8e7dd6/32.png) [@zhangwen](https://www.ruby-forum.com/u/zhangwen)\
**Post date:** [September 11, 2014, 3:38pm UTC](https://www.ruby-forum.com/t/make-test-error/231986/2 "2014-09-11T15:38:13Z")

</div>

On Wed, Sep 10, 2014 at 10:40 PM, zhangwen [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> UpdateCTestConfiguration from
> 
> 2: self.tb.run ()  
> needed, 0 connected)
> 
> ```
> Start 2: qa_square_ff
> 
> ```

Follow the error. It’s telling you that you haven’t properly connected  
all  
of the ports for the block. Take a look at your QA code and make sure  
that  
the flowgraph is set up correctly.

Tom

---

<div class="post-metadata">

**Author:** ![zhangwen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/8e7dd6/32.png) [@zhangwen](https://www.ruby-forum.com/u/zhangwen)\
**Post date:** [September 17, 2014, 4:21am UTC](https://www.ruby-forum.com/t/make-test-error/231986/3 "2014-09-17T04:21:06Z")

</div>

Thank you！  
I had find error on my QA code, it’s just a writing  
error…

Owen Zhang

-----原始邮件-----  
发件人: “Tom R.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
发送时间: 2014年9月11日 星期四  
收件人: zhangwen [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
抄送: “GnuRadio Receiver” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
主题: Re: [Discuss-gnuradio] make test error

On Wed, Sep 10, 2014 at 10:40 PM, zhangwen [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

hi,  
When I follow Gnuradio using “make test” and “ctest” to test my new  
how-to block, it returns RuntimeError: square\_ff(6): insufficient  
connected output ports (1 needed, 0 connected)

As the following messages, I think there may be something wrong with the  
test program “qa\_square\_ff.py”

lab@lab-ThinkPad-Edge-E430:~/newblock/gr-howto/build$ ctest -V -R square  
UpdateCTestConfiguration from  
:/home/lab/newblock/gr-howto/build/DartConfiguration.tcl  
UpdateCTestConfiguration from  
:/home/lab/newblock/gr-howto/build/DartConfiguration.tcl  
Test project /home/lab/newblock/gr-howto/build  
Constructing a list of tests  
Done constructing a list of tests  
Checking test dependency graph…  
Checking test dependency graph end  
test 2  
Start 2: qa\_square\_ff

# 2: Test command: /bin/sh “/home/lab/newblock/gr-howto/build/python/qa\_square\_ff\_test.sh” 2: Test timeout computed to be: 9.99988e+06 2: E 2:

## 2: ERROR: test\_001\_t ( **main**.qa\_square\_ff) 2:

## 2: Traceback (most recent call last): 2: File “/home/lab/newblock/gr-howto/python/qa\_square\_ff.py”, line 43, in test\_001\_t 2: self.tb.run () 2: File “/usr/lib/python2.7/dist-packages/gnuradio/gr/top\_block.py”, line 109, in run 2: self.start(max\_noutput\_items) 2: File “/usr/lib/python2.7/dist-packages/gnuradio/gr/top\_block.py”, line 103, in start 2: top\_block\_start\_unlocked(self.\_tb, max\_noutput\_items) 2: File “/usr/lib/python2.7/dist-packages/gnuradio/gr/runtime\_swig.py”, line 4585, in top\_block\_start\_unlocked 2: return \_runtime\_swig.top\_block\_start\_unlocked(\*args, \*\*kwargs) 2: RuntimeError: square\_ff(6): insufficient connected output ports (1 needed, 0 connected) 2: 2:

2: Ran 1 test in 0.000s  
2:  
2: FAILED (errors=1)  
1/1 Test #2: qa\_square\_ff …\*\*\*Failed 0.17 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) = 0.17 sec

The following tests FAILED:  
2 - qa\_square\_ff (Failed)  
Errors while running CTest

lab@lab-ThinkPad-Edge-E430:~/newblock/gr-howto/build$ make test  
Running tests…  
Test project /home/lab/newblock/gr-howto/build  
Start 1: test\_howto  
1/2 Test #1: test\_howto … Passed 0.00 sec  
Start 2: qa\_square\_ff  
2/2 Test #2: qa\_square\_ff …\*\*\*Failed 0.18 sec

50% tests passed, 1 tests failed out of 2

Total Test time (real) = 0.19 sec

The following tests FAILED:  
2 - qa\_square\_ff (Failed)  
Errors while running CTest  
make: \*\*\* [test] 错误 8

Follow the error. It’s telling you that you haven’t properly connected  
all of the ports for the block. Take a look at your QA code and make  
sure that the flowgraph is set up correctly.

Tom
