Bug 965952 - Remove GetVersionEx call from TestWinFileAttribs.cpp. r=froydnj
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Fri, 31 Jan 2014 05:44:04 +0900
changeset 182143 5b68a429b6956677128ae3135ee9bc96f5cc5b34
parent 182142 5ff73743d1d3e2625cf2a6a69a6ccdae32cef003
child 182144 abc4eb237e163e5dc06b9fb5ccef8c4ac85a6fdb
push id3343
push userffxbld
push dateMon, 17 Mar 2014 21:55:32 +0000
treeherdermozilla-beta@2f7d3415f79f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs965952
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 965952 - Remove GetVersionEx call from TestWinFileAttribs.cpp. r=froydnj
xpcom/tests/windows/TestWinFileAttribs.cpp
--- a/xpcom/tests/windows/TestWinFileAttribs.cpp
+++ b/xpcom/tests/windows/TestWinFileAttribs.cpp
@@ -9,35 +9,18 @@
 
 #include "../TestHarness.h"
 #include "nsEmbedString.h"
 #include "nsILocalFileWin.h"
 #include <windows.h>
 
 #define BUFFSIZE 512
 
-BOOL IsXPOrGreater()
-{
-  OSVERSIONINFO osvi;
-
-  ZeroMemory(&osvi, sizeof(OSVERSIONINFO));
-  osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
-
-  GetVersionEx(&osvi);
-
-  return ( (osvi.dwMajorVersion > 5) ||
-     ( (osvi.dwMajorVersion == 5) && (osvi.dwMinorVersion >= 1) ));
-}
-
 nsresult TestWinAttribs()
 {
-    if (!IsXPOrGreater())
-      return NS_OK;
-  
-    printf("Is XP or greater, running tests...\n");
 
     nsresult rv;
 
     // File variables
     HANDLE hIndexed;
     nsCOMPtr<nsIFile> localFile;
     WCHAR filePath[MAX_PATH];