Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Patch to fix the matrix serialization test
· fc0837b8
Shayan Doust
authored
Jul 20, 2019
fc0837b8
Merge branch 'master' of salsa.debian.org:med-team/mmseqs2
· b4ff22b5
Shayan Doust
authored
Jul 20, 2019
b4ff22b5
Show whitespace changes
Inline
Side-by-side
debian/patches/fix_tests.patch
0 → 100644
View file @
b4ff22b5
Description: Fix some of the test src files to work in autopkgtest
as some of the tests do not work as the paths have either been hardcoded or SIGSEGV is thrown
Author: Shayan Doust <hello@shayandoust.me>
Last-Update: 2019-07-20
---
Index: mmseqs2/src/test/TestScoreMatrixSerialization.cpp
===================================================================
--- mmseqs2.orig/src/test/TestScoreMatrixSerialization.cpp 2019-07-20 16:21:13.549699250 +0100
+++ mmseqs2/src/test/TestScoreMatrixSerialization.cpp 2019-07-20 16:21:13.545699216 +0100
@@ -18,10 +18,11 @@
ScoreMatrix* unserialized = ScoreMatrix::unserialize(serialized, subMat.alphabetSize, 3);
Debug(Debug::INFO) << unserialized->elementSize << " " << unserialized->rowSize << " "
- << unserialized->score[0] << " " << unserialized->index[0] << "\n";
-
- ScoreMatrix::cleanup(unserialized);
+ << unserialized->score[0] << "\n";
+
free(serialized);
- ScoreMatrix::cleanup(extMattwo);
+ // Why not use an operator. Will free & destruct & will not SIGSEGV
+ delete(unserialized);
+
return EXIT_SUCCESS;
}
debian/patches/series
View file @
b4ff22b5
fix_tests.patch
fix_src_zstd_includes.patch
fix_util_installation.patch
use_system_zstd.patch
...
...
debian/tests/run-unit-test
View file @
b4ff22b5
...
...
@@ -55,3 +55,5 @@ echo "Invoking test_translate"
./test_translate
echo
"Invoking test_util"
./test_util
echo
"Invoking test_scorematrixserialization"
./test_scorematrixserialization