Index: tests/alias.test =================================================================== diff -u -rbd1cce484140aaf66113cf647f060ae48d32b24f -r991f6b6fde382a9bb5c3c9232206988813a3eb37 --- tests/alias.test (.../alias.test) (revision bd1cce484140aaf66113cf647f060ae48d32b24f) +++ tests/alias.test (.../alias.test) (revision 991f6b6fde382a9bb5c3c9232206988813a3eb37) @@ -394,13 +394,15 @@ ::nsf::alias C FOO ::foo ? {info exists ::nsf::alias(::C,FOO,0)} 1 ? {C info methods -methodtype alias} FOO +# Rename target, such that alias points to an invalid item +# Note that removing the target works differently (makes cleanup) +# rename ::foo "" rename ::foo ::foo2 ? {info exists ::nsf::alias(::C,FOO,0)} 1 ? {C info methods -methodtype alias} FOO -? {c FOO} ::c->foo2 -? {C info method definition FOO} "::C public alias FOO ::foo"; # should be ::foo2 (!) +? {c FOO} {target "::foo" of alias FOO apparently disappeared} +? {C info method definition FOO} "::C public alias FOO ::foo" - # # Check resolving of namespace imported classes # and when a class is aliased via "interp alias" @@ -517,7 +519,7 @@ } # - # by calling "foo" outside the obejct/method context, we get a + # by calling "foo" outside the object/method context, we get a # byte-code without the compiled-local handler, colon-vars are not # recognized, :a refers to the argument ? {foo 1 2} 1 @@ -543,4 +545,6 @@ # the variable in the test scope does not influence result set :d 200 ? {bar 3 4} 0-3-47 -} \ No newline at end of file +} + +puts stderr ===EXIT \ No newline at end of file