2008-01-29 Zoltan Varga <vargaz@gmail.com>
authorZoltan Varga <vargaz@gmail.com>
Tue, 29 Jan 2008 19:41:01 +0000 (19:41 -0000)
committerZoltan Varga <vargaz@gmail.com>
Tue, 29 Jan 2008 19:41:01 +0000 (19:41 -0000)
* ExecutorTest.cs (ExecWait_NullTempFileCollection): Fix the cmdNoFound case.

svn path=/trunk/mcs/; revision=94304

mcs/class/System/Test/System.CodeDom.Compiler/ChangeLog
mcs/class/System/Test/System.CodeDom.Compiler/ExecutorTest.cs

index b6a553acc082568df2289525943e53800c79676c..3a97bbfb6029b03deecd7f75f060e437614cbc89 100644 (file)
@@ -1,5 +1,7 @@
 2008-01-29  Zoltan Varga  <vargaz@gmail.com>
 
+       * ExecutorTest.cs (ExecWait_NullTempFileCollection): Fix the cmdNoFound case.
+       
        * ExecutorTest.cs: Handle cases when ping is not in the PATH, or when it
        returns a non standard error code.
 
index 46e73b442885f807536582a18cc62dc1329c43b1..56d62a51d3e4b1a5ff2ca7c3e62d1b7ea0afec2f 100644 (file)
@@ -93,7 +93,7 @@ namespace MonoTests.System.CodeDom.Compiler {
                public void ExecWait_NullTempFileCollection ()
                {
                        if (cmdNotFound)
-                               return;
+                               throw new NullReferenceException ();
                        Executor.ExecWait (cmd, null);
                }