Debian Codegraph @

testsuite/modules.70-maint/056-whatis-nullpath.exp

raw
1 ##############################################################################
2 # Modules Revision 3.0
3 # Providing a flexible user environment
4 #
5 # File: modules.70-maint/%M%
6 # Revision: %I%
7 # First Edition: 2014/10/14
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: Eric Deveaud [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command: whatis no arguments
14 # Sub-Command:
15 #
16 # Comment: %C{
17 # Tests the 'module whatis' command
18 # when "empty value" in MODULEPATH
19 # egg MODULEPATH=foo::bar
20 # was causing infinite loop when whatis invoqued
21 # without arguments
22 # }C%
23 #
24 ##############################################################################
25
26 skip_if_quick_mode
27
28 # force MODULEPATH with "empty" value.
29 setenv_path_var MODULEPATH foo {} bar
30
31 # Test only for the csh
32
33 set ts_csh_1 ""
34
35 # The tests
36 testouterr_cmd "csh" "whatis" "OK" "$ts_csh_1"
37
38 # restore environment
39 setenv_path_var MODULEPATH $modpath
40
41 # Cleanup
42
43 reset_test_env