Debian Codegraph @

testsuite/modules.20-locate/065-rcerrs.exp

raw
1 ##############################################################################
2 # Modules Revision 3.0
3 # Providing a flexible user environment
4 #
5 # File: modules.20-locate/%M%
6 # Revision: %I%
7 # First Edition: 95/12/06
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: Jens Hamisch, [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command: load
14 # Modulefiles:
15 # Sub-Command:
16 #
17 # Comment: %C{
18 # Tests the reaction to invalid entries in the global
19 # modulecmd RC file
20 # }C%
21 #
22 ##############################################################################
23
24 #
25 # We do expect 4 error messages
26 #
27
28 set prob_name "$error_msgs: Invalid modulename '/1.0' found\n"
29 set err_exec "$error_msgs: Tcl command execution failed: module-version\t/1.0\tfoobar\n"
30 set warn_src "$warn_msgs: Error sourcing file '$env(TESTSUITEDIR)/etc/bad'\n"
31 set err_loc "$err_path'loc_sym/foobar'"
32
33 #
34 # The tests
35 #
36
37 set env(MODULERCFILE) "$env(TESTSUITEDIR)/etc/bad"
38 # Tcl-version does not currently locate precisely where the error occurred
39 #testouterr_cmd "csh" "load loc_sym/foobar" "" "$prob_name$err_exec\n$warn_src$err_loc"
40 testouterr_cmd "csh" "load loc_sym/foobar" "ERR" "$prob_name$err_loc"
41
42 #
43 # Cleanup
44 #
45
46 reset_test_env