[VS Addin] Disable PPAPI linking test except on VS2012
The pre-compiled libraries (specifically ppapi_cpp.lib)
that we ship are only compiled with VS2012 so this test
will fail on 2010 due to library incompatability. These
tests used to pass with pepper_36 since at that point
the SDK builders were still using 2010.
BUG=
R=binji@chromium.org
Review URL: https://codereview.chromium.org/860173003
git-svn-id: https://nativeclient-sdk.googlecode.com/svn/trunk/src@1581 050acbb0-2703-11df-ab0a-9f3f633ae91d
diff --git a/UnitTests/CompileTest.cs b/UnitTests/CompileTest.cs
index 629ce3e..3b7d03d 100644
--- a/UnitTests/CompileTest.cs
+++ b/UnitTests/CompileTest.cs
@@ -61,6 +61,14 @@
[TestMethod]
public void CheckPepperCompile()
{
+ if (!TestUtilities.IsVS2012())
+ {
+ // The pre-compiled libraries in the SDK (specifically
+ // ppapi_cpp.lib) are not linkable except with 2012 so
+ // this test will always fail with link errors under 2010
+ // or any other Visual Studio version.
+ Assert.Inconclusive();
+ }
CheckCompile(Strings.PepperPlatformName);
}