-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run-pass-valgrind tests fail when valgrind doesn't exist #18588
Comments
cc @nick29581 |
cc @alexcrichton, this is deliberate. You can avoid it by using the flag |
If it is on purpose then the configure script should have failed when valgrind wasn't found. |
I got the same error, and didn't know how to do, before I'm here and find |
We need a more friendly thing, like what @brson suggested. |
An easy fix(unless I'm missing something, of course) would be adding the the following lines after this one: Line 642 in 81504f2
Looks like this(first line already existing): probe CFG_VALGRIND valgrind
if [ -z "$CFG_VALGRIND" ]
then
if [ ! -z "$CFG_ENABLE_VALGRIND" ] || [ -z "$CFG_DISABLE_VALGRIND_RPASS" ]
then
err "Valgrind not found, but wanted. You may want to add --disable-valgrind-rpass"
fi
fi This will yell by default(./configure without params) if valgrind isn't found, unless you specifically add However, the reason why I didn't make a PR is because this code won't work in the case that the default values will change. I am speaking of these values from here: Line 501 in 81504f2
reproduced here, these values I meant(0,0,1): opt valgrind 0 "run tests with valgrind (memcheck by default)"
opt helgrind 0 "run tests with helgrind instead of memcheck"
opt valgrind-rpass 1 "run rpass-valgrind tests with valgrind" adding this code within the
Basically, if the default value for say I figure this is done this way to detect if the value was specifically requested/set by the user(via a ./configure parameter), instead of the default one(./configure without params). |
@emanueLczirai the problem you've discovered is an unfortunate limitation of the configure system. Writing conditionals about configuration correctly requires knowing the default value. |
…#18588 Based on @emanueLczirai's patch.
Indeed! |
I get
task '<main>' panicked at 'Can't find Valgrind to run Valgrind tests', /opt/dev/rust3/src/compiletest/compiletest.rs:44
when running the test suite now. These tests should probably be disabled when configure doesn't find valgrind.The text was updated successfully, but these errors were encountered: