diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2018-04-27 11:26:23 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2018-04-27 11:26:23 +0200 |
commit | f9ebc5ad9892c431ec35c1bb01514626d98c9539 (patch) | |
tree | a78c3dcc31fe2a5773a96c836bf3810f6264e7a4 /tests | |
parent | b565c26b3065e2966b0fd7e78ee76c5932c906d6 (diff) | |
download | ufo-filters-f9ebc5ad9892c431ec35c1bb01514626d98c9539.tar.gz ufo-filters-f9ebc5ad9892c431ec35c1bb01514626d98c9539.tar.bz2 ufo-filters-f9ebc5ad9892c431ec35c1bb01514626d98c9539.tar.xz ufo-filters-f9ebc5ad9892c431ec35c1bb01514626d98c9539.zip |
Return explicit empty string if NULL
Otherwise the JSON generator crashes as seen in issue #149 of ufo-core.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 3 | ||||
-rw-r--r-- | tests/meson.build | 1 | ||||
-rwxr-xr-x | tests/test-core-149.sh | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 4d319a2..ac2ef4c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -14,3 +14,6 @@ add_test(test_153 add_test(test_161 ${BASH} "${CMAKE_CURRENT_SOURCE_DIR}/test-161.sh") + +add_test(test_core_149 + ${BASH} "${CMAKE_CURRENT_SOURCE_DIR}/test-core-149.sh") diff --git a/tests/meson.build b/tests/meson.build index ddea725..2809155 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -3,3 +3,4 @@ test('test-142', find_program('test-142.sh')) test('test-149', find_program('test-149.sh')) test('test-153', find_program('test-153.sh')) test('test-161', find_program('test-161.sh')) +test('test-core-149', find_program('test-core-149.sh')) diff --git a/tests/test-core-149.sh b/tests/test-core-149.sh new file mode 100755 index 0000000..0af9d98 --- /dev/null +++ b/tests/test-core-149.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +ufo-launch -q -d foo.json dummy-data ! opencl filename=complex.cl kernel=c_conj ! null +exit $? |