On Sun, May 22, 2011 at 2:56 PM, James Youngman <jay@...> wrote:
> On Sun, May 22, 2011 at 2:22 PM, Joerg Schilling
>> Then I don't understand the purpose of you test as it seems to verify that
>> there is no such automatic switch to binary mode.
> That is not what the test verifies, as I have repeatedly tried to
> explain, and as the code clearly shows. I don't know how to explain
> this more clearly. Perhaps if you take a look at the code again:
> if $TESTING_CSSC
> ## Real SCCS fails on these inputs:-
> test_bin fb10 "foo" # no newline at end of file.
> test_ascii fa11 "x\000y\n" # ASCII NUL.
> echo "Some tests skipped (since SCCS fails them but CSSC should pass)"
Perhaps that was an unnecessarily terse response. The point is that
all of these are success case tests, but the fa11 test verifies that
NUL is accepted in a file body, since as far as I understand things
it's BOL followed by \001 which causes versions of SCCS which support
binary files to activate that support.
Since the system diff will often not cope with this, it's actually not
verifying an invariant that's genuinely useful in many cases.