Repository navigation
LE date services: the oracle refuses an output item shorter than the result, CEE2526 / CEE2527 (Part of #5003) - #6608
Merged
Conversation
…result, CEE2526 / CEE2527 (Part of #5003) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
7 tasks done
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Part of #5003.
Checklist: done [c:a06ff706]
The C oracle of CEEDATE / CEEDATM (
tests/equivalence/le/le_time.c) now refuses, by name (exit 98), a result longer than the caller's output item (CEE2526 / CEE2527), as the Java runtime already did. GnuCOBOL passes a CALLed C routine a bare pointer, so the size comes from the harness:tests/tools/le_out_size.pyreads the program's DATA DIVISION andequivalence.pyputsGG_LE_OUT_SIZES=CEEDATE=n,CEEDATM=nbefore./program. Before this, a short item was silently overwritten past its end in the oracle.Class / Sibling gaps
Class: an LE output item whose size the oracle's C model cannot see, so it cannot refuse a result that does not fit. Members: CEEDATE
output_char_dateand CEEDATMoutput_timestamp(the only VSTRING outputs; CEESECS / CEEISEC / CEESECI / CEEDYWK / CEEQCEN write fixed items). Both handled, tested against the Java probe byte for byte (short / exact / long).Sibling gaps:
DATM-CONVresolves to 80 bytes for a 16-byte result; the census testtest_le_fmd_census_5003.pystill guards it.Evidence
test_det_le_time.py+ census: 225/232 passed; new tests cover the C side (short refused, exact and long filled, equal to Java; another service's size ignored; no size stated = as before) and the resolver (declared sizes, groups, min over calls, six unresolved shapes left out).pr_gates --fast7/7,--ratchets9/9 (none skipped). Nogitgalaxy/change, so no golden bless.CEEDATM=80.Cross-repo: none.
🤖 Generated with Claude Code