[mapguide-commits] r9779 - in sandbox/jng/vanilla_swig/Bindings/src/Test/DotNet/src: TestCommon TestRunner

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sat Nov 14 01:01:15 PST 2020


Author: jng
Date: 2020-11-14 01:01:14 -0800 (Sat, 14 Nov 2020)
New Revision: 9779

Modified:
   sandbox/jng/vanilla_swig/Bindings/src/Test/DotNet/src/TestCommon/TestResult.cs
   sandbox/jng/vanilla_swig/Bindings/src/Test/DotNet/src/TestRunner/Program.cs
Log:
Fix up MgException result processing. This now reduces our test failure count to just 4

Modified: sandbox/jng/vanilla_swig/Bindings/src/Test/DotNet/src/TestCommon/TestResult.cs
===================================================================
--- sandbox/jng/vanilla_swig/Bindings/src/Test/DotNet/src/TestCommon/TestResult.cs	2020-11-13 08:50:02 UTC (rev 9778)
+++ sandbox/jng/vanilla_swig/Bindings/src/Test/DotNet/src/TestCommon/TestResult.cs	2020-11-14 09:01:14 UTC (rev 9779)
@@ -102,7 +102,7 @@
         public static TestResult FromMgException(MgException ex, NameValueCollection param)
         {
             //Need to be lowercase to satisfy a PHP-ism. Ugh!
-            var res = new TestResult(ex.GetType().Name.ToLower(), "text/plain");
+            var res = new TestResult(ex.GetExceptionCode().ToLower(), "text/plain");
             res.IsException = true;
             res.FullExceptionDetails = ex.ToString();
             if (param != null)

Modified: sandbox/jng/vanilla_swig/Bindings/src/Test/DotNet/src/TestRunner/Program.cs
===================================================================
--- sandbox/jng/vanilla_swig/Bindings/src/Test/DotNet/src/TestRunner/Program.cs	2020-11-13 08:50:02 UTC (rev 9778)
+++ sandbox/jng/vanilla_swig/Bindings/src/Test/DotNet/src/TestRunner/Program.cs	2020-11-14 09:01:14 UTC (rev 9779)
@@ -106,7 +106,6 @@
             int failures = 0;
             using (var logger = new TestLoggerFile(logFile, false))
             {
-
                 logger.Write("Run started: {0}\n\n", DateTime.Now.ToString());
 
                 Environment.SetEnvironmentVariable("MENTOR_DICTIONARY_PATH", options.DictionaryPath, EnvironmentVariableTarget.Process);



More information about the mapguide-commits mailing list