Tk Library Source Code

View Ticket
Login
Ticket UUID: 507242
Title: test failed
Type: Bug Version: None
Submitter: nobody Created on: 2002-01-22 22:51:56
Subsystem: crc Assigned To: patthoyts
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-01-24 04:44:45
Resolution: Fixed Closed By: patthoyts
    Closed on: 2002-01-23 21:44:45
Description:
i got the following errors during \make test from crc:

Module: crc
modules/crc/cksum.test

==== cksum-4.0 cksum file option FAILED
==== Contents of test case:

    set r1 [crc::cksum -file $::argv0]
    set r2 [crc::cksum [crc::loaddata $::argv0]]
    if {$r1 != $r2} {
        set r "differing results: $r1 != $r2"
    } else {
        set r ok
    }

==== Test generated error:
can't read "::argv0": no such variable
---- Result should have been:
ok
==== cksum-4.0 FAILED

modules/crc/crc32.test

==== crc32-4.0 crc32 file option FAILED
==== Contents of test case:

    set r1 [::crc::crc32 -file $::argv0]
    set r2 [::crc::crc32 [crc::loaddata $::argv0]]
    if {$r1 != $r2} {
        set r "differing results: $r1 != $r2"
    } else {
        set r ok
    }

==== Test generated error:
can't read "::argv0": no such variable
---- Result should have been:
ok
==== crc32-4.0 FAILED

modules/crc/sum.test

==== sum-4.0 sum file option (BSD) FAILED
==== Contents of test case:

    set r1 [crc::sum -bsd -file $::argv0]
    set r2 [crc::sum -bsd [crc::loaddata $::argv0]]
    if {$r1 != $r2} {
        set r "differing results: $r1 != $r2"
    } else {
        set r ok
    }

==== Test generated error:
can't read "::argv0": no such variable
---- Result should have been:
ok
==== sum-4.0 FAILED


==== sum-4.1 sum file option (SysV) FAILED
==== Contents of test case:

    set r1 [crc::sum -sysv -file $::argv0]
    set r2 [crc::sum -sysv [crc::loaddata $::argv0]]
    if {$r1 != $r2} {
        set r "differing results: $r1 != $r2"
    } else {
        set r ok
    }

==== Test generated error:
can't read "::argv0": no such variable
---- Result should have been:
ok
==== sum-4.1 FAILED


********
******** solution?
********
after, package require cksum in cksum.test, i added
set ::argv0 [info script]

that fixed it.
User Comments: patthoyts added on 2002-01-24 04:44:45:
Logged In: YES 
user_id=202636

I've applied a fix for this and checked it for 'make
install' on OpenBSD and by sourcing the test script into a
wish session. Should be OK now.