summaryrefslogtreecommitdiff
path: root/src/pal/tests/palsuite/common/ResultTime.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/tests/palsuite/common/ResultTime.h')
-rw-r--r--src/pal/tests/palsuite/common/ResultTime.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/pal/tests/palsuite/common/ResultTime.h b/src/pal/tests/palsuite/common/ResultTime.h
index df706e7..82daeb8 100644
--- a/src/pal/tests/palsuite/common/ResultTime.h
+++ b/src/pal/tests/palsuite/common/ResultTime.h
@@ -11,11 +11,7 @@
const char *szDotNetInstallEnvVar = "DOTNET_INSTALL";
const char *szQASupportDirEnvVar = "QA_SUPPORT_DIR";
-#ifdef PLATFORM_UNIX
#define SEPERATOR "/"
-#else
-#define SEPERATOR "\\"
-#endif
char *getBuildNumber()
{
char *szBuildFileName = "buildinfo.txt";
@@ -34,16 +30,6 @@ char *getBuildNumber()
Fail("ERROR: Couldn't allocate enough memory to potentially store build number\n");
}
-#ifndef PLATFORM_UNIX
- pDirectoryName = getenv(szDotNetInstallEnvVar);
- if (pDirectoryName == NULL)
- {
- /* This condition may exist if the test is being run in say the Dev environment.*/
- Trace("WARNING: Coriolis Test Environment may not be setup correctly. Variable DOTNET_INSTALL not set\n");
- _snprintf(szTempValue, 99, "0000.00");
- return szTempValue;
- }
-#else
pDirectoryName = getenv(szQASupportDirEnvVar);
if (pDirectoryName == NULL)
{
@@ -52,14 +38,8 @@ char *getBuildNumber()
return szTempValue;
}
-#endif //PLATFORM_UNIX
-
-#ifndef PLATFORM_UNIX
- _snprintf(szBuildFileLoc, MAX_PATH, "%s%s%s", pDirectoryName, SEPERATOR, szBuildFileName);
-#else
// To avoid buffer overruns for pDirectoryName
_snprintf(szBuildFileLoc, MAX_PATH, "%s/../1.0%s%s", pDirectoryName, SEPERATOR, szBuildFileName);
-#endif //PLATFORM_UNIX
fp = fopen( szBuildFileLoc, "r");
if( fp == NULL)
{