Skip to content
Commits on Source (2)
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;
}
fix_tests.patch
fix_src_zstd_includes.patch
fix_util_installation.patch
use_system_zstd.patch
......
......@@ -55,3 +55,5 @@ echo "Invoking test_translate"
./test_translate
echo "Invoking test_util"
./test_util
echo "Invoking test_scorematrixserialization"
./test_scorematrixserialization