Only platforms with a 32bit time_t signed will have problems in 2038,…#2407
Conversation
… with 32bit time_t unsigned we have until 2106
* ACE/tests/Time_Value_Test.cpp:
WalkthroughThe code in the time value test now differentiates between signed and unsigned 32-bit Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (19)
✨ Finishing Touches
🧪 Generate Unit Tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
ACE/tests/Time_Value_Test.cpp(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (21)
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: ubuntu-22.04 clang++-13
- GitHub Check: ubuntu-24.04 g++-10 ACE for TAO
- GitHub Check: ubuntu-24.04 g++-10 wchar
- GitHub Check: ubuntu-22.04 clang++-12
- GitHub Check: ubuntu-24.04 clang++-14
- GitHub Check: ubuntu-24.04 g++-10 CodeQL
- GitHub Check: ubuntu-24.04 g++-10 CORBA/e compact
- GitHub Check: ubuntu-24.04 clang++-16
- GitHub Check: ubuntu-24.04 g++-10 CORBA/e micro
- GitHub Check: macos-13-C++
- GitHub Check: macos-14-C++
- GitHub Check: ubuntu-24.04 clang++-15
- GitHub Check: ubuntu-24.04 g++-12
- GitHub Check: ubuntu-24.04 g++-11
- GitHub Check: ubuntu-24.04 g++-13
- GitHub Check: ubuntu-22.04 g++-10
- GitHub Check: ubuntu-22.04 g++-9
- GitHub Check: ubuntu-24.04 g++-14
- GitHub Check: alpine-3.18
- GitHub Check: ubuntu-24.04 g++
🔇 Additional comments (2)
ACE/tests/Time_Value_Test.cpp (2)
213-223: Well-implemented differentiation between signed and unsigned 32-bit time_t.The logic correctly distinguishes between the two scenarios:
- Signed 32-bit time_t: Will overflow to negative in 2038 (treated as error)
- Unsigned 32-bit time_t: Will overflow in 2106 without going negative (treated as debug info)
This differentiation makes technical sense as the severity and timeline differ significantly between these cases.
217-217: Verify the intentional test behavior change.This modification changes the test's behavior: platforms with unsigned 32-bit time_t will now pass the test (no error count increment) instead of failing. Please confirm this behavioral change aligns with the intended test semantics.
Also applies to: 223-223
* ACE/tests/Time_Value_Test.cpp:
|
@Mergifyio backport ace6tao2 |
✅ Backports have been createdDetails
|
[ace6tao2] Only platforms with a 32bit time_t signed will have problems in 2038,… (backport #2407)
… with 32bit time_t unsigned we have until 2106
Summary by CodeRabbit