diff options
Diffstat (limited to 'linden/indra/test')
-rw-r--r-- | linden/indra/test/inventory.cpp | 8 | ||||
-rw-r--r-- | linden/indra/test/llblowfish_tut.cpp | 4 | ||||
-rw-r--r-- | linden/indra/test/lldatapacker_tut.cpp | 4 | ||||
-rw-r--r-- | linden/indra/test/llmessageconfig_tut.cpp | 17 | ||||
-rw-r--r-- | linden/indra/test/llpermissions_tut.cpp | 4 | ||||
-rw-r--r-- | linden/indra/test/llsaleinfo_tut.cpp | 4 |
6 files changed, 29 insertions, 12 deletions
diff --git a/linden/indra/test/inventory.cpp b/linden/indra/test/inventory.cpp index 3899dfc..a4a4599 100644 --- a/linden/indra/test/inventory.cpp +++ b/linden/indra/test/inventory.cpp | |||
@@ -329,7 +329,7 @@ namespace tut | |||
329 | template<> template<> | 329 | template<> template<> |
330 | void inventory_object::test<7>() | 330 | void inventory_object::test<7>() |
331 | { | 331 | { |
332 | FILE* fp = fopen("linden_file.dat","w+"); | 332 | LLFILE* fp = LLFile::fopen("linden_file.dat","w+"); |
333 | if(!fp) | 333 | if(!fp) |
334 | { | 334 | { |
335 | llerrs << "file could not be opened\n" << llendl; | 335 | llerrs << "file could not be opened\n" << llendl; |
@@ -341,7 +341,7 @@ namespace tut | |||
341 | fclose(fp); | 341 | fclose(fp); |
342 | 342 | ||
343 | LLPointer<LLInventoryItem> src2 = new LLInventoryItem(); | 343 | LLPointer<LLInventoryItem> src2 = new LLInventoryItem(); |
344 | fp = fopen("linden_file.dat","r+"); | 344 | fp = LLFile::fopen("linden_file.dat","r+"); |
345 | if(!fp) | 345 | if(!fp) |
346 | { | 346 | { |
347 | llerrs << "file could not be opened\n" << llendl; | 347 | llerrs << "file could not be opened\n" << llendl; |
@@ -483,7 +483,7 @@ namespace tut | |||
483 | template<> template<> | 483 | template<> template<> |
484 | void inventory_object::test<13>() | 484 | void inventory_object::test<13>() |
485 | { | 485 | { |
486 | FILE* fp = fopen("linden_file.dat","w"); | 486 | LLFILE* fp = LLFile::fopen("linden_file.dat","w"); |
487 | if(!fp) | 487 | if(!fp) |
488 | { | 488 | { |
489 | llerrs << "file coudnt be opened\n" << llendl; | 489 | llerrs << "file coudnt be opened\n" << llendl; |
@@ -495,7 +495,7 @@ namespace tut | |||
495 | fclose(fp); | 495 | fclose(fp); |
496 | 496 | ||
497 | LLPointer<LLInventoryCategory> src2 = new LLInventoryCategory(); | 497 | LLPointer<LLInventoryCategory> src2 = new LLInventoryCategory(); |
498 | fp = fopen("linden_file.dat","r"); | 498 | fp = LLFile::fopen("linden_file.dat","r"); |
499 | if(!fp) | 499 | if(!fp) |
500 | { | 500 | { |
501 | llerrs << "file coudnt be opened\n" << llendl; | 501 | llerrs << "file coudnt be opened\n" << llendl; |
diff --git a/linden/indra/test/llblowfish_tut.cpp b/linden/indra/test/llblowfish_tut.cpp index e1fa2fd..78253cd 100644 --- a/linden/indra/test/llblowfish_tut.cpp +++ b/linden/indra/test/llblowfish_tut.cpp | |||
@@ -60,13 +60,13 @@ namespace tut | |||
60 | bool matchFile(const char* filename, | 60 | bool matchFile(const char* filename, |
61 | const std::string& data) | 61 | const std::string& data) |
62 | { | 62 | { |
63 | FILE* fp = fopen(filename, "rb"); | 63 | LLFILE* fp = LLFile::fopen(filename, "rb"); |
64 | if (!fp) | 64 | if (!fp) |
65 | { | 65 | { |
66 | // sometimes test is run inside the indra directory | 66 | // sometimes test is run inside the indra directory |
67 | std::string path = "test/"; | 67 | std::string path = "test/"; |
68 | path += filename; | 68 | path += filename; |
69 | fp = fopen(path.c_str(), "rb"); | 69 | fp = LLFile::fopen(path.c_str(), "rb"); |
70 | } | 70 | } |
71 | if (!fp) | 71 | if (!fp) |
72 | { | 72 | { |
diff --git a/linden/indra/test/lldatapacker_tut.cpp b/linden/indra/test/lldatapacker_tut.cpp index 096801a..d561a3c 100644 --- a/linden/indra/test/lldatapacker_tut.cpp +++ b/linden/indra/test/lldatapacker_tut.cpp | |||
@@ -351,7 +351,7 @@ namespace tut | |||
351 | { | 351 | { |
352 | F32 f_val = 44.44f, f_unpkval; | 352 | F32 f_val = 44.44f, f_unpkval; |
353 | 353 | ||
354 | FILE* fp = fopen(TEST_FILE_NAME, "w+"); | 354 | LLFILE* fp = LLFile::fopen(TEST_FILE_NAME, "w+"); |
355 | if(!fp) | 355 | if(!fp) |
356 | { | 356 | { |
357 | llerrs << "File couldnt be open" <<llendl; | 357 | llerrs << "File couldnt be open" <<llendl; |
@@ -406,7 +406,7 @@ namespace tut | |||
406 | LLVector4 unpkllvec4; | 406 | LLVector4 unpkllvec4; |
407 | LLUUID unpkuuid; | 407 | LLUUID unpkuuid; |
408 | 408 | ||
409 | FILE* fp = fopen(TEST_FILE_NAME,"w+"); | 409 | LLFILE* fp = LLFile::fopen(TEST_FILE_NAME,"w+"); |
410 | if(!fp) | 410 | if(!fp) |
411 | { | 411 | { |
412 | llerrs << "File couldnt be open" <<llendl; | 412 | llerrs << "File couldnt be open" <<llendl; |
diff --git a/linden/indra/test/llmessageconfig_tut.cpp b/linden/indra/test/llmessageconfig_tut.cpp index e5dd328..869070e 100644 --- a/linden/indra/test/llmessageconfig_tut.cpp +++ b/linden/indra/test/llmessageconfig_tut.cpp | |||
@@ -221,4 +221,21 @@ namespace tut | |||
221 | LLMessageConfig::onlySendLatest("msg2"), | 221 | LLMessageConfig::onlySendLatest("msg2"), |
222 | false); | 222 | false); |
223 | } | 223 | } |
224 | |||
225 | template<> template<> | ||
226 | void LLMessageConfigTestObject::test<9>() | ||
227 | // tests that event queue max is reloaded | ||
228 | { | ||
229 | LLSD config; | ||
230 | config["maxQueuedEvents"] = 200; | ||
231 | LLMessageConfig::useConfig(config); | ||
232 | ensure_equals("Ensure setting maxQueuedEvents", | ||
233 | LLMessageConfig::getMaxQueuedEvents(), | ||
234 | 200); | ||
235 | |||
236 | LLMessageConfig::useConfig(LLSD()); | ||
237 | ensure_equals("Ensure default of event queue max 100", | ||
238 | LLMessageConfig::getMaxQueuedEvents(), | ||
239 | 100); | ||
240 | } | ||
224 | } | 241 | } |
diff --git a/linden/indra/test/llpermissions_tut.cpp b/linden/indra/test/llpermissions_tut.cpp index 25af11c..0f53b98 100644 --- a/linden/indra/test/llpermissions_tut.cpp +++ b/linden/indra/test/llpermissions_tut.cpp | |||
@@ -421,7 +421,7 @@ namespace tut | |||
421 | template<> template<> | 421 | template<> template<> |
422 | void permission_object_t::test<20>() | 422 | void permission_object_t::test<20>() |
423 | { | 423 | { |
424 | FILE* fp = fopen("linden_file.dat","w+"); | 424 | LLFILE* fp = LLFile::fopen("linden_file.dat","w+"); |
425 | if(!fp) | 425 | if(!fp) |
426 | { | 426 | { |
427 | llerrs << "file coudnt be opened\n" << llendl; | 427 | llerrs << "file coudnt be opened\n" << llendl; |
@@ -444,7 +444,7 @@ namespace tut | |||
444 | 444 | ||
445 | perm.exportFile(fp); | 445 | perm.exportFile(fp); |
446 | fclose(fp); | 446 | fclose(fp); |
447 | fp = fopen("linden_file.dat","r+"); | 447 | fp = LLFile::fopen("linden_file.dat","r+"); |
448 | if(!fp) | 448 | if(!fp) |
449 | { | 449 | { |
450 | llerrs << "file coudnt be opened\n" << llendl; | 450 | llerrs << "file coudnt be opened\n" << llendl; |
diff --git a/linden/indra/test/llsaleinfo_tut.cpp b/linden/indra/test/llsaleinfo_tut.cpp index dde0d6e..297a19b 100644 --- a/linden/indra/test/llsaleinfo_tut.cpp +++ b/linden/indra/test/llsaleinfo_tut.cpp | |||
@@ -113,7 +113,7 @@ namespace tut | |||
113 | void llsaleinfo_test_t::test<2>() | 113 | void llsaleinfo_test_t::test<2>() |
114 | { | 114 | { |
115 | 115 | ||
116 | FILE* fp = fopen("linden_file.dat","w+"); | 116 | LLFILE* fp = LLFile::fopen("linden_file.dat","w+"); |
117 | if(!fp) | 117 | if(!fp) |
118 | { | 118 | { |
119 | llerrs << "file could not be opened\n" << llendl; | 119 | llerrs << "file could not be opened\n" << llendl; |
@@ -129,7 +129,7 @@ namespace tut | |||
129 | LLSaleInfo llsaleinfo1; | 129 | LLSaleInfo llsaleinfo1; |
130 | U32 perm_mask; | 130 | U32 perm_mask; |
131 | BOOL has_perm_mask; | 131 | BOOL has_perm_mask; |
132 | fp = fopen("linden_file.dat","r"); | 132 | fp = LLFile::fopen("linden_file.dat","r"); |
133 | 133 | ||
134 | if(!fp) | 134 | if(!fp) |
135 | { | 135 | { |