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: Fix a/z/c/z/test/zwave_command_class_time_parameters_test on U… #69

Merged
merged 1 commit into from
Mar 18, 2025

Conversation

rzr
Copy link
Collaborator

@rzr rzr commented Mar 17, 2025

tests: Fix a/z/c/z/test/zwave_command_class_time_parameters_test UTC #46

This test was previously bypassed, it is now working as expected.

The reason it was failing is because mktime use timezone
to set the tm structure that will be returned to the next step of test.

Setting timezone to UTC (+0) solves the problem.

BTW, I am introducing an (unused) variable to keep the property tweek on fishy tests
if needed later, it could be removed on next cmake update.

Bug-SiliconLabsSoftware: #46
Origin: #69

SiliconLabsSoftware#46

This test was previously bypassed, it is now working as expected.

The reason it was failing is because mktime use timezone
to set the tm structure that will be returned to the next step of step.

Setting timezone to UTC (+0) solves the problem

Bug-SiliconLabsSoftware: SiliconLabsSoftware#46
Origin: SiliconLabsSoftware#69
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
@rzr rzr force-pushed the zpc/test/review/main branch from 00493b3 to 6e740ad Compare March 17, 2025 15:44
@rzr rzr requested a review from silabs-aydogane March 17, 2025 15:45
rzr added a commit to rzr/z-wave-protocol-controller that referenced this pull request Mar 17, 2025
SiliconLabsSoftware#46

This test was previously bypassed, it is now working as expected.

The reason it was failing is because mktime use timezone
to set the tm structure that will be returned to the next step of step.

Setting timezone to UTC (+0) solves the problem

Bug-SiliconLabsSoftware: SiliconLabsSoftware#46
Origin: SiliconLabsSoftware#69
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
@rzr rzr merged commit 732c3e5 into SiliconLabsSoftware:main Mar 18, 2025
1 check passed
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