##############################################################################
#   Modules Revision 3.0
#   Providing a flexible user environment
#
#   File:		modules.20-locate/%M%
#   Revision:		%I%
#   First Edition:	95/12/06
#   Last Mod.:		%U%, %G%
#
#   Authors:		Jens Hamisch, Jens.Hamisch@Strawberry.COM
#
#   Description:	Testuite testsequence
#   Command:		load
#   Modulefiles:
#   Sub-Command:
#
#   Comment:	%C{
#			Tests the reaction to invalid entries in the global
#			modulecmd RC file
#		}C%
#
##############################################################################

#
#  We do expect 4 error messages
#

set prob_name "$error_msgs: Invalid modulename '/1.0' found\n"
set err_exec "$error_msgs: Tcl command execution failed: module-version\t/1.0\tfoobar\n"
set warn_src "$warn_msgs: Error sourcing file '$env(TESTSUITEDIR)/etc/bad'\n"
set err_loc "$err_path'loc_sym/foobar'"

#
#  The tests
#

set env(MODULERCFILE) "$env(TESTSUITEDIR)/etc/bad"
# Tcl-version does not currently locate precisely where the error occured
#testouterr_cmd "csh" "load loc_sym/foobar" "" "$prob_name$err_exec\n$warn_src$err_loc"
testouterr_cmd "csh" "load loc_sym/foobar" "ERR" "$prob_name$err_loc"

#
#  Cleanup
#

reset_test_env
