-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
gdb: bypass unit test on non-x86 #8672
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good except a typo (?) in the command "uname"?
This is of course good as a short-term band-aid, but I hope we can (and remember to!) remove it soon.
test/scylla-gdb/run
Outdated
@@ -1,5 +1,12 @@ | |||
#! /bin/bash -eu | |||
|
|||
if [ "$(name -m)" != x86_64 ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe you meant uname
, not name
?
I'm not familiar with a tool called "name"...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. How did that happen?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simple - even if you set -e
to has bash exit on error, a failure inside a command interpolation $(name -m)
does not cause bash to exit. It just interpolates to nothing and prints a "command not found" warning which you probably didn't see, and the equality just never succeeds. I guess you didn't check the patch on x86_64?
The gdb self-tests fail on aarch64 due to a failure to use thread-local variables. I filed [1] so it can get fixed. Meanwhile, disable the test so the build passes. It is sad, but the aarch64 build is not impacted by these failures. [1] https://sourceware.org/bugzilla/show_bug.cgi?id=27886
6e74164
to
72e3a77
Compare
Unfortunately, it's up to the gdb maintainers to fix thread-local storage on aarch64. |
The gdb self-tests fail on aarch64 due to a failure to use thread-local variables. I filed [1] so it can get fixed. Meanwhile, disable the test so the build passes. It is sad, but the aarch64 build is not impacted by these failures. [1] https://sourceware.org/bugzilla/show_bug.cgi?id=27886 Closes #8672
The gdb self-tests fail on aarch64 due to a failure to use thread-local
variables. I filed [1] so it can get fixed.
Meanwhile, disable the test so the build passes. It is sad, but the aarch64
build is not impacted by these failures.
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=27886