Diff
Not logged in

Differences From Artifact [5f446892b9]:

To Artifact [04ff3133ce]:


1
2
3
4
5
6
7
8
9
10
11
12
13
14

15
16
17
18
19
20
21
1
2
3
4
5
6
7
8
9
10
11
12
13

14
15
16
17
18
19
20
21













-
+







# Commands covered:  info
#
# This file contains a collection of tests for one or more of the Tcl
# built-in commands.  Sourcing this file into Tcl runs the tests and
# generates output for errors.  No output means no errors were found.
#
# Copyright (c) 1991-1994 The Regents of the University of California.
# Copyright (c) 1994-1997 Sun Microsystems, Inc.
# Copyright (c) 1998-1999 by Scriptics Corporation.
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
# RCS: @(#) $Id: info.test,v 1.21 2002/06/11 13:22:36 msofer Exp $
# RCS: @(#) $Id: info.test,v 1.22 2002/06/11 13:47:49 dkf Exp $

if {[lsearch [namespace children] ::tcltest] == -1} {
    package require tcltest
    namespace import -force ::tcltest::*
}

# Set up namespaces needed to test operation of "info args", "info body",
544
545
546
547
548
549
550
551

552
553
554
555
556
557
558
544
545
546
547
548
549
550

551
552
553
554
555
556
557
558







-
+







    set script [info script]
    info script newname.txt
    list [source gorp.info] [file tail [info script]] \
	    [file tail [info script $script]]
} [list gorp.info newname.txt info.test]
removeFile gorp.info
makeFile {list [info script] [info script foo.bar]} gorp.info
test info-16.3 {info script option} {
test info-16.8 {info script option} {
    list [source gorp.info] [file tail [info script]]
} [list [list gorp.info foo.bar] info.test]
removeFile gorp.info

test info-17.1 {info sharedlibextension option} {
    list [catch {info sharedlibextension foo} msg] $msg
} {1 {wrong # args: should be "info sharedlibextension"}}