logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Schöning <tschoen...@am-soft.de>
Subject Re: unit test 'errorhandlertestcase' failed
Date Thu, 24 Mar 2016 15:12:28 GMT
Guten Tag Thorsten Schöning,
am Freitag, 12. Februar 2016 um 08:56 schrieben Sie:

> So maybe the test is just wrong?

Don't think so anymore: I guess errorhandlertestcase failed on Linux
because :x.log is a valid file name there. That's not the case under
e.g. NTFS and from my understanding the purpose of the PRIMARY
appender is simply to fail to be used because of an invalid file name
and trigger FALLBACK that way. If that fails and logging into :x.log
succeeds, the test fails. So I changed the file name used to be ".",
which should be invalid in most cases.

This way the test succeeds in my Windows and Ubuntu as well.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail: Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow


Mime
View raw message