-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
Fix failures in dtypes test on cygwin #5077
Merged
derobins
merged 1 commit into
HDFGroup:develop
from
jhendersonHDF:cygwin_dtypes_failures
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6436,16 +6436,17 @@ test__Float16(void) | |
} | ||
|
||
if (is_little_endian) { | ||
if (path->conv.u.lib_func != H5T__conv_noop) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In at least cygwin, |
||
if (strcmp(path->name, "no-op") != 0) { | ||
H5_FAILED(); | ||
printf("Conversion path for H5T_NATIVE_FLOAT16 -> H5T_IEEE_F16LE was not H5T__conv_noop\n"); | ||
printf("Conversion path for H5T_NATIVE_FLOAT16 -> H5T_IEEE_F16LE was not a no-op\n"); | ||
goto error; | ||
} | ||
} | ||
else { | ||
if (path->conv.u.lib_func != H5T__conv_order_opt) { | ||
if (strcmp(path->name, "fbo(opt)") != 0) { | ||
H5_FAILED(); | ||
printf("Conversion path for H5T_NATIVE_FLOAT16 -> H5T_IEEE_F16LE was not H5T__conv_order\n"); | ||
printf( | ||
"Conversion path for H5T_NATIVE_FLOAT16 -> H5T_IEEE_F16LE was not a byte-swap conversion\n"); | ||
goto error; | ||
} | ||
} | ||
|
@@ -6469,16 +6470,17 @@ test__Float16(void) | |
} | ||
|
||
if (is_little_endian) { | ||
if (path->conv.u.lib_func != H5T__conv_order_opt) { | ||
if (strcmp(path->name, "fbo(opt)") != 0) { | ||
H5_FAILED(); | ||
printf("Conversion path for H5T_NATIVE_FLOAT16 -> H5T_IEEE_F16BE was not H5T__conv_order\n"); | ||
printf( | ||
"Conversion path for H5T_NATIVE_FLOAT16 -> H5T_IEEE_F16BE was not a byte-swap conversion\n"); | ||
goto error; | ||
} | ||
} | ||
else { | ||
if (path->conv.u.lib_func != H5T__conv_noop) { | ||
if (strcmp(path->name, "no-op") != 0) { | ||
H5_FAILED(); | ||
printf("Conversion path for H5T_NATIVE_FLOAT16 -> H5T_IEEE_F16BE was not H5T__conv_noop\n"); | ||
printf("Conversion path for H5T_NATIVE_FLOAT16 -> H5T_IEEE_F16BE was not a no-op\n"); | ||
goto error; | ||
} | ||
} | ||
|
@@ -7393,7 +7395,7 @@ test_complex_type_conv_funcs(void) | |
printf("Invalid conversion path for H5T_NATIVE_FLOAT_COMPLEX -> H5T_NATIVE_FLOAT_COMPLEX\n"); | ||
goto error; | ||
} | ||
if (conv_path->conv.u.lib_func != H5T__conv_noop) { | ||
if (strcmp(conv_path->name, "no-op") != 0) { | ||
H5_FAILED(); | ||
printf("Conversion path for H5T_NATIVE_FLOAT_COMPLEX -> H5T_NATIVE_FLOAT_COMPLEX was not a no-op\n"); | ||
goto error; | ||
|
@@ -7409,7 +7411,7 @@ test_complex_type_conv_funcs(void) | |
printf("Invalid conversion path for H5T_NATIVE_DOUBLE_COMPLEX -> H5T_NATIVE_DOUBLE_COMPLEX\n"); | ||
goto error; | ||
} | ||
if (conv_path->conv.u.lib_func != H5T__conv_noop) { | ||
if (strcmp(conv_path->name, "no-op") != 0) { | ||
H5_FAILED(); | ||
printf( | ||
"Conversion path for H5T_NATIVE_DOUBLE_COMPLEX -> H5T_NATIVE_DOUBLE_COMPLEX was not a no-op\n"); | ||
|
@@ -7426,7 +7428,7 @@ test_complex_type_conv_funcs(void) | |
printf("Invalid conversion path for H5T_NATIVE_LDOUBLE_COMPLEX -> H5T_NATIVE_LDOUBLE_COMPLEX\n"); | ||
goto error; | ||
} | ||
if (conv_path->conv.u.lib_func != H5T__conv_noop) { | ||
if (strcmp(conv_path->name, "no-op") != 0) { | ||
H5_FAILED(); | ||
printf( | ||
"Conversion path for H5T_NATIVE_LDOUBLE_COMPLEX -> H5T_NATIVE_LDOUBLE_COMPLEX was not a no-op\n"); | ||
|
@@ -7453,7 +7455,7 @@ test_complex_type_conv_funcs(void) | |
printf("Can't find datatype conversion path\n"); | ||
goto error; | ||
} | ||
if (conv_path->conv.u.lib_func != H5T__conv_order) { | ||
if (strcmp(conv_path->name, "complexbo") != 0) { | ||
H5_FAILED(); | ||
printf("Conversion path for H5T_COMPLEX_IEEE_F32LE -> H5T_COMPLEX_IEEE_F32BE was not a byte-swap " | ||
"conversion\n"); | ||
|
@@ -7465,7 +7467,7 @@ test_complex_type_conv_funcs(void) | |
printf("Can't find datatype conversion path\n"); | ||
goto error; | ||
} | ||
if (conv_path->conv.u.lib_func != H5T__conv_order) { | ||
if (strcmp(conv_path->name, "complexbo") != 0) { | ||
H5_FAILED(); | ||
printf("Conversion path for H5T_COMPLEX_IEEE_F32BE -> H5T_COMPLEX_IEEE_F32LE was not a byte-swap " | ||
"conversion\n"); | ||
|
@@ -7881,7 +7883,7 @@ test_complex_array_compat_conv(void) | |
printf("Invalid conversion path for complex type -> array type\n"); | ||
goto error; | ||
} | ||
if (conv_path->conv.u.lib_func != H5T__conv_complex_compat) { | ||
if (strcmp(conv_path->name, "complex_array_compat") != 0) { | ||
H5_FAILED(); | ||
printf("Conversion path for complex type -> array type was not a no-op\n"); | ||
goto error; | ||
|
@@ -7896,7 +7898,7 @@ test_complex_array_compat_conv(void) | |
printf("Invalid conversion path for array type -> complex type\n"); | ||
goto error; | ||
} | ||
if (conv_path->conv.u.lib_func != H5T__conv_complex_compat) { | ||
if (strcmp(conv_path->name, "array_complex_compat") != 0) { | ||
H5_FAILED(); | ||
printf("Conversion path for array type -> complex type was not a no-op\n"); | ||
goto error; | ||
|
@@ -8338,7 +8340,7 @@ test_complex_compound_compat_conv(void) | |
printf("Invalid conversion path for complex type -> compound type\n"); | ||
goto error; | ||
} | ||
if (conv_path->conv.u.lib_func != H5T__conv_complex_compat) { | ||
if (strcmp(conv_path->name, "complex_compound_compat") != 0) { | ||
H5_FAILED(); | ||
printf("Conversion path for complex type -> compound type was not a no-op\n"); | ||
goto error; | ||
|
@@ -8353,7 +8355,7 @@ test_complex_compound_compat_conv(void) | |
printf("Invalid conversion path for compound type -> complex type\n"); | ||
goto error; | ||
} | ||
if (conv_path->conv.u.lib_func != H5T__conv_complex_compat) { | ||
if (strcmp(conv_path->name, "compound_complex_compat") != 0) { | ||
H5_FAILED(); | ||
printf("Conversion path for compound type -> complex type was not a no-op\n"); | ||
goto error; | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Add an additional check to prevent the no-op path from being considered a new conversion path, which had some odd side effects from replacing the path with a slightly different, new no-op path.