The record is the text of the repair. The Results table is the last run of the row.
NewFileTest start with
NewFile primitiveIsAvailable ifFalse: [ ^ self skip ].NewFilePlugin
of the stock VM, and our VM did not have the plugin.src/vm/plugins/NewFilePlugin.cpp (20 primitives, the POSIX
side). The package needs no change.scripts/cogdiff/newfile_plugin_checks.st has 36 more checks (directories,
closed handles, buffers that are not ByteArrays, wrong arguments). Our VM
and stock Cog give the same answer for 33 of them. The 3 others are
defects of the stock plugin:
scripts/cogdiff/newfile_plugin_ours_checks.st is for our VM only. Stock
Cog stopped with Abort trap: 6 in primitiveClose: when the first form
of the script had the check that gives a copy of the handle of a closed
file to the close primitive (the stock plugin keeps a C pointer in the
handle). Our VM keeps an id that is never used again, and fails the
primitive.NewFile>>close does not release the memory views of the file, and sets
the handle to null. A later unmap of a view then gives a null handle to
the primitive, and the mapping stays until the VM exits. The stock VM
has the same result.Load the package into a Pharo 14 image (build 791) with the load expression of the test run, file in the fixes file of the row if there is one, and run the test classes of the package.
"row 50" Metacello new baseline: 'NewFiles'; repository: 'github://ronsaldo/pharo-newfile:main/tonel'; onConflict: [:e | e useIncoming]; load.
Last result of the package run (stock Cog and iospharo on the same image).
| Row | Label | Load | Stock Cog | iospharo VM |
|---|---|---|---|---|
| 50 | ronsaldo-pharo-newfile | ok | tests=42 P=42 F=0 E=0 S=0 T=0 X=0 | tests=42 P=42 F=0 E=0 S=0 T=0 X=0 |
No fixes file; the record above says what changed.
State of 2026-11-20. Made from the test records of the iospharo project (a second Pharo VM). The fixes are proposals for review.