The Trunk: Files-nice.175.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Files-nice.175.mcz

commits-2
Nicolas Cellier uploaded a new version of Files to project The Trunk:
http://source.squeak.org/trunk/Files-nice.175.mcz

==================== Summary ====================

Name: Files-nice.175
Author: nice
Time: 6 December 2017, 11:06:36.405817 pm
UUID: f8c4858f-bd11-425d-86e7-32e4f353f43d
Ancestors: Files-tpr.174

Workaround for truncated readOnlyCopy of .changes log file on linux.

On linux, the latest bytes written to the change log are not allways taken into account when we create a readOnlyCopy.

The readOnlyCopy then appear as truncated.
This can cause an infinite loop in MCMockPackageInfo(PackageInfo)>>changeRecordForOverriddenMethod:

See https://github.com/hpi-swa/smalltalkCI/issues/350

=============== Diff against Files-tpr.174 ===============

Item was changed:
  ----- Method: StandardFileStream>>readOnlyCopy (in category 'read, write, position') -----
  readOnlyCopy
+ self flush. "Some linux open a truncated readOnlyCopy. Force it to take latest bytes written into account."
-
  ^ self class readOnlyFileNamed: self name.
  !