Hello;

While testing the latest version of openrcs (from the OpenBSD CVS) on
FreeBSD we noticed RCS doesn't pass the GNU RCS tests (yes, here is a
"tests" directory in the GNU rcs distribution).

More specifically:

+ : -Dhas_conf_h
+ : cc
+ : diff
+ CL='cc -Dhas_conf_h  -o a.out'
+ L=''
+ RCSINIT=-x
+ export RCSINIT
+ SLASH=/
+ RCSfile=RCS/a.c
+ RCS_alt=RCS/a.d
+ lockfile=RCS/a._
+ q=-q
+ test -d RCS
+ rmdir=rmdir
+ mkdir RCS
+ rm -f 'a.*' RCS/a.c RCS/a.d RCS/a._
+ echo 1.1
+ echo 1.1.1.1
+ echo 1.2
+ diff -c a.11 a.3x1
+ diff='diff -c'
+ rcs -i -L -ta.11 -q a.c
+ test -r RCS/a.c
+ rlog a.c
+ rm -f RCS/a.c
+ cp a.11 a.c
+ ci -ta.11 -mm -q a.c
+ test -r RCS/a.c
+ rcs -L -q a.c
+ test ! -f a.c
+ co -q a.c
+ test -f a.c
+ diff -c a.11 a.c
+ co -l -q a.c
+ test -f a.c
+ diff -c a.11 a.c
+ cp a.12 a.c
+ ci -mm -q a.c
+ co -q a.c
+ diff -c a.12 a.c
+ rm -f a.c
+ co -r1.1 -q a.c
+ diff -c a.11 a.c
+ rm -f a.c
+ cp a.3x1 a.c
+ ci -r1.1.1 -mm -q a.c
ci: RCS/a.c: no lock set by username
+ echo '#branches failed'
#branches failed
+ exit 1

____

I haven't tested on OpenBSD but the changes I did to port OpenRCS to
FreeBSD are unrelated to the failure.

I just started looking at this: apparently the issue comes from ci.c
(line 449) and I see a big /* XXX this is wrong ... */ comment before
that may serve as a hint ;).

I currently have no patch, just thought someone here may understand
better what is happening and may want to take a look.

Regards,

Pedro.

Reply via email to