Skip to content
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

tests: Ignore failing test on PowerPC 64-bit #83

Merged
merged 3 commits into from
Apr 26, 2022

Conversation

ParkMyCar
Copy link
Owner

There's an issue with formatting floats on PowerPC Little Endian 64-bit, for now we'll ignore the relevant assertions for this platform to keep the X-Plat CI target high signal

@@ -419,8 +421,6 @@ fn test_to_compact_str() {
assert_int_MAX_to_compact_str!(isize);

// Test specialisation for f32 and f64 using ryu
Copy link
Contributor

@NobodyXu NobodyXu Apr 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, we just need to add cfg here to include all assert_eq for testing specialisation for f32 and f64 using ryu:

Suggested change
// Test specialisation for f32 and f64 using ryu
// Test specialisation for f32 and f64 using ryu
#[cfg(all(target_arch = "powerpc64", target_pointer_width = "64"))]
{

@@ -390,6 +390,8 @@ macro_rules! assert_int_MAX_to_compact_str {
}

#[test]
// TODO: Fix bug in powerpc64, which is a little endian system
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tracking issue for this is rust-lang/rust#96306

@ParkMyCar ParkMyCar merged commit eb3861b into main Apr 26, 2022
@ParkMyCar ParkMyCar deleted the tests/ignore-test-on-powerpc64 branch April 26, 2022 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants