Uh oh!
There was an error while loading. Please reload this page.
debuginfo: Ignore optimized enum tests for GDB versions that can't handle them. - #39039
Conversation
Manishearth
commented
Jan 13, 2017
Note that only the gdbr tests should be ignored. It would be better if we directly annotated the tests, too (not the entire file) |
nrc
left a comment
There was a problem hiding this comment.
r = me with the minor comments addressed
| } | ||
| } | ||
| fn extract_gdb_version_range(line: &str) -> (u32, u32) { |
There was a problem hiding this comment.
Could you add a comment explaining the return type please?
| .collect::<Vec<&str>>(); | ||
| match range_components.len() { | ||
| 0 => panic!(ERROR_MESSAGE), |
| .split(' ') | ||
| .last() | ||
| .expect("Malformed GDB version directive"); | ||
| let min_version = extract_gdb_version_range(line); |
There was a problem hiding this comment.
I think the name is misleading because it is both the min and max version? Rather, than renaming, using a destructuring let rather than tuple indexing would probably be more readable.
| actual_version < extract_gdb_version(min_version).unwrap() | ||
| actual_version < min_version.0 | ||
| } else if line.contains("ignore-gdb-version") { | ||
| let version_range = extract_gdb_version_range(line); |
michaelwoerister
commented
Jan 16, 2017
@bors r=nrc Thanks for the review, I think the comments are all addressed now. |
bors
commented
Jan 16, 2017
📌 Commit 30ba990 has been approved by |
michaelwoerister
commented
Jan 16, 2017
@bors rollup |
michaelwoerister
commented
Jan 16, 2017
Sorry, I didn't find the time to implement that. Maybe I'll come back to this later but feel free to implement it (e.g. by adding a "ignore-gdbr-in-version-range" directive). |
…, r=nrc debuginfo: Ignore optimized enum tests for GDB versions that can't handle them. Fixesrust-lang#38948. r? @nrc cc @Manishearth
ignore more gdb versions with buggy rust support This extends the versions of gdb which were ignored in rust-lang#39039. While just ignoring gdb versions up to 7.12.1 would have been sufficient for now, I believe (after consulting https://sourceware.org/gdb/wiki/Internals%20Versions) that ignoring versions up to 7.12.9 will prevent the tests failing again for 7.12.2, etc. while still running all tests for the development versions of gdb (which will be >= 7.12.10 as far as I can tell). This should fixrust-lang#39522. cc @Manishearth, @michaelwoerister, rust-lang#38948
ignore more gdb versions with buggy rust support This extends the versions of gdb which were ignored in rust-lang#39039. While just ignoring gdb versions up to 7.12.1 would have been sufficient for now, I believe (after consulting https://sourceware.org/gdb/wiki/Internals%20Versions) that ignoring versions up to 7.12.9 will prevent the tests failing again for 7.12.2, etc. while still running all tests for the development versions of gdb (which will be >= 7.12.10 as far as I can tell). This should fixrust-lang#39522. cc @Manishearth, @michaelwoerister, rust-lang#38948
ignore more gdb versions with buggy rust support This extends the versions of gdb which were ignored in rust-lang#39039. While just ignoring gdb versions up to 7.12.1 would have been sufficient for now, I believe (after consulting https://sourceware.org/gdb/wiki/Internals%20Versions) that ignoring versions up to 7.12.9 will prevent the tests failing again for 7.12.2, etc. while still running all tests for the development versions of gdb (which will be >= 7.12.10 as far as I can tell). This should fixrust-lang#39522. cc @Manishearth, @michaelwoerister, rust-lang#38948
Fixes#38948.
r? @nrc
cc @Manishearth