[xbuild] Fix failing test in msbuild.tasks .
authorAnkit Jain <radical@corewars.org>
Wed, 5 Jan 2011 00:44:20 +0000 (06:14 +0530)
committerAnkit Jain <radical@corewars.org>
Wed, 5 Jan 2011 00:44:20 +0000 (06:14 +0530)
mcs/class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks/CscTest.cs

index 46019d7d57f8f1c2cbd16d73607731cbfb85a485..f7505b294c4c9ad1223ccd644fa765c9aeae5cfa 100644 (file)
@@ -341,6 +341,11 @@ namespace MonoTests.Microsoft.Build.Tasks {
                        Assert.AreEqual (String.Empty, c2.ToString (), "A2");
                }
 
+               // Behavior for this intentionally differs from .net .
+               // msbuild doesn't quote the define args, but we do
+               // that to make it easier to copy/paste and execute
+               // compiler command lines, helps in debugging.
+               [Category ("NotDotNet")]
                [Test]
                public void TestDefineConstants ()
                {
@@ -352,7 +357,7 @@ namespace MonoTests.Microsoft.Build.Tasks {
                        csc.ARFC (c1);
                        csc.ACLC (c2);
 
-                       Assert.AreEqual ("/define:A;B;CD;Foo;Bar", c1.ToString (), "A1");
+                       Assert.AreEqual ("/define:\"A;B;CD;Foo;Bar\"", c1.ToString (), "A1");
                        Assert.AreEqual (String.Empty, c2.ToString (), "A2");
                }