Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GILLES Sebastien
MoReFEM
Commits
e29cd572
Commit
e29cd572
authored
Oct 28, 2019
by
GILLES Sebastien
Browse files
#177 Valgrind: fix the call by setting MOREFEM_ROOT environment variable properly.
parent
091bd7f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Scripts/Tools/run_valgrind_tools.py
View file @
e29cd572
...
...
@@ -43,7 +43,7 @@ class RunValgrind:
def
_runValgrind
(
self
):
cmd
=
"valgrind --error-exitcode=1 --log-file={output} --gen-suppressions=all --show-leak-kinds=all --show-reachable=yes --track-origins=yes --leak-check=full --errors-for-leak-kinds=all --suppressions=../ExternalTools/Valgrind/openmpi.suppr --suppressions=../ExternalTools/Valgrind/libgomp.suppr --suppressions=../ExternalTools/Valgrind/libc.suppr {executable} -i {lua_file} --overwrite_directory -e MOREFEM_RESULT_DIR=Results"
.
format
(
output
=
self
.
__output
,
lua_file
=
self
.
__lua_file
,
executable
=
self
.
__executable
)
cmd
=
"
MOREFEM_ROOT={}/Codes/MoReFEM
valgrind --error-exitcode=1 --log-file={output} --gen-suppressions=all --show-leak-kinds=all --show-reachable=yes --track-origins=yes --leak-check=full --errors-for-leak-kinds=all --suppressions=../ExternalTools/Valgrind/openmpi.suppr --suppressions=../ExternalTools/Valgrind/libgomp.suppr --suppressions=../ExternalTools/Valgrind/libc.suppr {executable} -i {lua_file} --overwrite_directory -e MOREFEM_RESULT_DIR=Results"
.
format
(
os
.
environ
[
"HOME"
],
output
=
self
.
__output
,
lua_file
=
self
.
__lua_file
,
executable
=
self
.
__executable
)
subprocess
.
run
(
cmd
,
shell
=
True
).
check_returncode
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment