By default, gst-launch tries to handle SIGSEGV, which
incur spinning in a bare-Linux systems including the VMs of
pdebuild/gbs/obs.
For example:
```
Caught SIGSEGV
exec gdb failed: No such file or directory
Spinning. Please run 'gdb gst-launch-1.0 10693' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
```
During unit-testing, we simply need to report errors,
not to handle them. Thus, we disable signal handler of
gst-launch.
This fixes https://github.com/nnsuite/nnstreamer/issues/1104
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
## @param $4 set 1 if this passes if gstLaunch fails.
## @param $5 set 1 to enable PERFORMANCE test.
function gstTest() {
- calloutput=$(gst-launch-1.0 -q $1)
+ calloutput=$(gst-launch-1.0 -f -q $1)
retcode=$?
desired=0
if [[ "${4}" -eq "1" ]]; then