Prevent spinning of gst-launch with SIGSEGV
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 4 Mar 2019 04:25:47 +0000 (13:25 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 4 Mar 2019 04:25:47 +0000 (13:25 +0900)
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>
ssat-api.sh

index f64e87a..d2df1ca 100644 (file)
@@ -264,7 +264,7 @@ function callCompareTest() {
 ## @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