Skip to content

Commit

Permalink
Added failing test with issue 163
Browse files Browse the repository at this point in the history
  • Loading branch information
hoene committed Oct 3, 2021
1 parent bd800bd commit af59f7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Expand Up @@ -83,7 +83,8 @@ if(BUILD_TESTS)
136
137
138
156)
156
163)
# issues with osx 96)
add_test(fail-issue-${ISSUE} ${PROJECT_SOURCE_DIR}/tests/notcrashed.sh
${PROJECT_SOURCE_DIR}/tests/fail-issue-${ISSUE})
Expand Down
Binary file added tests/fail-issue-163.sofa
Binary file not shown.
4 changes: 1 addition & 3 deletions tests/notcrashed.sh
@@ -1,12 +1,10 @@
#!/bin/sh

test -f "$1".sofa || exit 128
../build/src/mysofa2json "$1".sofa >/dev/null 2>/dev/null
ret=$?
if [ "$ret" -ge 128 ]; then
if [ "$ret" -ge 128 ]; then
echo mysofa2json crashed with $ret opening$1.sofa
exit $ret
fi
fi
echo good
exit 0
Expand Down

0 comments on commit af59f7a

Please sign in to comment.