diff options
author | Melanie | 2012-05-17 13:28:25 +0100 |
---|---|---|
committer | Melanie | 2012-05-17 13:28:25 +0100 |
commit | 34f20b7fe38067c36872d875754b1d7efe4973a9 (patch) | |
tree | 9ff8f0d3cd61cf1e5ccbf60640ae2df951b2a37c /OpenSim/Tests/Common | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Merge branch 'master' of /home/opensim/lib/osgrid/opensim (diff) | |
download | opensim-SC-34f20b7fe38067c36872d875754b1d7efe4973a9.zip opensim-SC-34f20b7fe38067c36872d875754b1d7efe4973a9.tar.gz opensim-SC-34f20b7fe38067c36872d875754b1d7efe4973a9.tar.bz2 opensim-SC-34f20b7fe38067c36872d875754b1d7efe4973a9.tar.xz |
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Tests/Common')
-rw-r--r-- | OpenSim/Tests/Common/TestHelpers.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Tests/Common/TestHelpers.cs b/OpenSim/Tests/Common/TestHelpers.cs index 6744fca..d38d692 100644 --- a/OpenSim/Tests/Common/TestHelpers.cs +++ b/OpenSim/Tests/Common/TestHelpers.cs | |||
@@ -61,7 +61,7 @@ namespace OpenSim.Tests.Common | |||
61 | private static Stream DisableLoggingConfigStream | 61 | private static Stream DisableLoggingConfigStream |
62 | = new MemoryStream( | 62 | = new MemoryStream( |
63 | Encoding.UTF8.GetBytes( | 63 | Encoding.UTF8.GetBytes( |
64 | // "<?xml version=\"1.0\" encoding=\"utf-8\" ?><configuration><log4net><root><level value=\"OFF\"/><appender-ref ref=\"A1\"/></root></log4net></configuration>"))); | 64 | // "<?xml version=\"1.0\" encoding=\"utf-8\" ?><configuration><log4net><root><level value=\"OFF\"/><appender-ref ref=\"A1\"/></root></log4net></configuration>")); |
65 | //"<?xml version=\"1.0\" encoding=\"utf-8\" ?><configuration><log4net><root><level value=\"OFF\"/></root></log4net></configuration>"))); | 65 | //"<?xml version=\"1.0\" encoding=\"utf-8\" ?><configuration><log4net><root><level value=\"OFF\"/></root></log4net></configuration>"))); |
66 | // "<configuration><log4net><root><level value=\"OFF\"/></root></log4net></configuration>")); | 66 | // "<configuration><log4net><root><level value=\"OFF\"/></root></log4net></configuration>")); |
67 | // "<configuration><log4net><root></root></log4net></configuration>"))); | 67 | // "<configuration><log4net><root></root></log4net></configuration>"))); |
@@ -100,6 +100,12 @@ namespace OpenSim.Tests.Common | |||
100 | /// <summary> | 100 | /// <summary> |
101 | /// Disable logging whilst running the tests. | 101 | /// Disable logging whilst running the tests. |
102 | /// </summary> | 102 | /// </summary> |
103 | /// <remarks> | ||
104 | /// Remember, if a regression test throws an exception before completing this will not be invoked if it's at | ||
105 | /// the end of the test. | ||
106 | /// TODO: Always invoke this after every test - probably need to make all test cases inherit from a common | ||
107 | /// TestCase class where this can be done. | ||
108 | /// </remarks> | ||
103 | public static void DisableLogging() | 109 | public static void DisableLogging() |
104 | { | 110 | { |
105 | log4net.Config.XmlConfigurator.Configure(DisableLoggingConfigStream); | 111 | log4net.Config.XmlConfigurator.Configure(DisableLoggingConfigStream); |