[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-cssc] Test delta/errorcase.sh -> E30 .. E32
From: |
Joerg Schilling |
Subject: |
Re: [Bug-cssc] Test delta/errorcase.sh -> E30 .. E32 |
Date: |
Sun, 22 May 2011 20:04:54 +0200 |
User-agent: |
nail 11.22 3/20/05 |
James Youngman <address@hidden> wrote:
> > if $TESTING_CSSC
> > then
> > ## Real SCCS fails on these inputs:-
> > test_bin fb10 "foo" # no newline at end of file.
> > test_ascii fa11 "x\000y\n" # ASCII NUL.
> > else
> > echo "Some tests skipped (since SCCS fails them but CSSC should pass)"
> > fi
>
> 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.
I have no idea what you like to test here, this is why I asked you.....
I am not sure what you are replying to as you reply to a mail with the subject:
"Test binary/auto.sh fa11" but this is a thread with a different subject. I
thus reply to the _content_ which is related to "Test binary/auto.sh fa11" but
not to the subject from this mail.
I have not idea what you understand by "BOL" and a character with the value \001
does not appear in this test.
You write four characters into a file : 'x' a "\000' (nul) a 'y' and a new line
('\n').
You then call:
admin -iinfile s.infile
As the file contains a null character, SCCS-5.0 and above will automatically
switch to binary mode. Your recent answers claim that CSSC should do the same.
Your next test calls:
prt -f s.infile
and as this reports an encoded file, the test fails.
>From everything you wrote, this test is expected to fail with both SCCS and
CSSC.
Question: why do you write a test that aborts the test suite because it
would require SCCS to encode a _binary_ file as text file in order to pass?
Jörg
--
EMail:address@hidden (home) Jörg Schilling D-13353 Berlin
address@hidden (uni)
address@hidden (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
- Re: [Bug-cssc] Test delta/errorcase.sh -> E30 .. E32, (continued)
- Re: [Bug-cssc] Test delta/errorcase.sh -> E30 .. E32, James Youngman, 2011/05/20
- Re: [Bug-cssc] Test delta/errorcase.sh -> E30 .. E32, Joerg Schilling, 2011/05/21
- Re: [Bug-cssc] Test delta/errorcase.sh -> E30 .. E32, James Youngman, 2011/05/21
- Re: [Bug-cssc] Test delta/errorcase.sh -> E30 .. E32, Joerg Schilling, 2011/05/21
- Re: [Bug-cssc] Test delta/errorcase.sh -> E30 .. E32, James Youngman, 2011/05/21
- Re: [Bug-cssc] Test delta/errorcase.sh -> E30 .. E32, Joerg Schilling, 2011/05/22
- Re: [Bug-cssc] Test delta/errorcase.sh -> E30 .. E32, James Youngman, 2011/05/22
- Re: [Bug-cssc] Test delta/errorcase.sh -> E30 .. E32, James Youngman, 2011/05/22
- Re: [Bug-cssc] Test delta/errorcase.sh -> E30 .. E32,
Joerg Schilling <=
- Re: [Bug-cssc] Test delta/errorcase.sh -> E30 .. E32, Joerg Schilling, 2011/05/22