Debian Codegraph @

testsuite/modules.00-init/190-tcl_ext_lib.exp

raw
1 ##############################################################################
2 # Modules Revision 3.0
3 # Providing a flexible user environment
4 #
5 # File: modules.00-init/%M%
6 # Revision: %I%
7 # First Edition: 2026/07/17
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: Xavier Delaruelle, [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command: load
14 # Modulefiles: bar, foo
15 # Sub-Command:
16 #
17 # Comment: %C{
18 # Test Modules Tcl extended library
19 # }C%
20 #
21 ##############################################################################
22
23 skip_if_quick_mode
24
25 # test error report when loading library
26 # ensure we are in a specific test mode so we can play with installed files
27 # no need to specifically test on Darwin system and on Tcl < 9
28 if {[siteconfig_isStderrTty] && $tcl_platform(os) ne "Darwin" &&\
29 [info exists tclextlib_file] && [info exists tcl_loadfilelib_file] &&\
30 [file exists $tcl_loadfilelib_file] && [cmpversion $tclsh_version 9.0] > -1} {
31 setenv_var LD_PRELOAD $tcl_loadfilelib_file
32
33 set tserr "$error_msgs: error message"
34 testouterr_cmd sh {-V} ERR $tserr
35
36 unsetenv_var LD_PRELOAD
37 }
38
39
40 #
41 # Cleanup
42 #
43
44 reset_test_env