Skip to content

Record the VFP build (VERSION(4)) with the goldens - 9.0.0.7423 disagrees on BINTOC/CTOBIN flags, numeric display widths, and DO WITH @ #38

Open

Description

@hemstreet

Running the corpus against 09.00.0000.7423 (SP2 with the post-SP2 hotfix rollup, Feb 2009), a group of goldens disagree in ways that look like build differences rather than environment (all measured with a -A launch, so no saved settings are involved):

  • ref_bintoc_flags.expected line 15 expects ERROR 11 from line 26 (? CTOBIN(BINTOC(2002, "2"), "2")). On 7423 that line does not error; measured: LEN(BINTOC(2002, "2")) is 2 and the round trip answers 2002.
  • About fifteen goldens differ only in the width a function-returned number prints with. error_command.expected has caught 1734 Property is not found. (the number at width 10); 7423 prints caught 1734 Property is not found. (width 11). Same text, one space. A quick check says it is function returns, not literals: on 7423 ? "lit", 94 prints lit 94 bare, while ? "len", LEN("xx") pads to len 2. The widths are stable on my build; they just do not match the checked-in ones.
  • arrays.prg: on 7423, DO Fill WITH @a raises error 10, Syntax error. — while DO Fill WITH a (no @) runs and fills the array. The golden expects the @ form to work, so on this build the checked-in output is unreachable.

None of these reproduce the checked-in text on 7423, which suggests the goldens were measured on a different build (RTM 9.0.0.2412? SP1? SP2 9.0.0.5815 without the hotfixes?). Since .expected files are the project's ground truth, it would help to:

  1. Record VERSION(4) of the measuring machine in the not-measured.txt header (the sweep already rewrites it), so every golden states the build it is true for.
  2. Decide which build the project targets; 7423 is the last one Microsoft shipped, so it is probably the least surprising target for people running their old apps.
  3. For the width-only family: ref_operators.prg already solved this — its header says numbers are printed through LTRIM(STR(...)) "so the golden says what the arithmetic answered and not how wide Visual FoxPro decided to draw it". Retrofitting the ref_argforms_* prints the same way would make those goldens build-portable at a stroke.

I can contribute a full re-measured set from 7423 if that is the build you want to target.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions