diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2012-12-19 06:42:50 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2012-12-19 06:42:50 -0500 |
commit | 64e3352aa1186b355c3fb956bfbd9e9ffa5c88fa (patch) | |
tree | a1843c4303846e57268de575aa80a3681b5a3eac | |
parent | 205f77e0359988ab68d412bfdf9f5ef4649767ff (diff) | |
parent | 8a2c30b388a190e24d9c886fdaa9a7b83179f194 (diff) |
MAINT-1986: merge in TeamCity check in hashmap_test
-rw-r--r-- | indra/test/lluuidhashmap_tut.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/test/lluuidhashmap_tut.cpp b/indra/test/lluuidhashmap_tut.cpp index 408bc3faf1..9712a613f4 100644 --- a/indra/test/lluuidhashmap_tut.cpp +++ b/indra/test/lluuidhashmap_tut.cpp @@ -117,9 +117,10 @@ namespace tut std::string savefile(gDirUtilp->add(tempdir, "lluuidhashmap_tut.save.txt")); const int numElementsToCheck = 32*256*32; std::vector<LLUUID> idList; - if (gDirUtilp->fileExists(savefile)) + if ((! getenv("TEAMCITY_PROJECT_NAME")) && gDirUtilp->fileExists(savefile)) { - // We have saved data from a previous failed run. Reload that data. + // This is not a TeamCity build, and we have saved data from a + // previous failed run. Reload that data. std::ifstream inf(savefile.c_str()); if (! inf.is_open()) { @@ -139,8 +140,8 @@ namespace tut } else { - // savefile does not exist (normal case): regenerate idList from - // scratch. + // This is a TeamCity build, or (normal case) savefile does not + // exist: regenerate idList from scratch. for (int i = 0; i < numElementsToCheck; ++i) { LLUUID id; |