indexing description: "test failsafe appenders" library: "elogger" copyright: "Copyright (c) 2006, AXA Rosenberg, and others (see copyright.txt)" author: "Ulrich Weiss, and others" license: "Eiffel Forum License v2 (see forum.txt)" date: "$Date: $" revision: "$Revision: $" archive: "$Archive: $" deferred class TEST_ELOG_FAILSAFE_APPENDER inherit TS_TEST_CASE undefine name_of_id, execute_i_th end feature -- Test test_failsafe_appenders is -- test failsafe appenders. local a1, a2, a3: ELOG_STDOUT_APPENDER do -- test cycle create a1.make ("appender1", True) create a2.make ("appender2", True) create a3.make ("appender3", True) a1.set_backup_appender (a2, False) a2.set_backup_appender (a3, False) -- the following line would lead to a cycle and be caught by -- a postcondition -- a3.set_backup_appender (a1, False) assert ("failsafe_appender", a1.backup_appender = a2) end end