mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.autotest, upphub.root
git-svn-id: svn://ultimatepp.org/upp/trunk@15542 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c38e4ba322
commit
ba61d6282e
3 changed files with 27 additions and 14 deletions
|
|
@ -138,13 +138,16 @@ CONSOLE_APP_MAIN
|
|||
StdLogSetup(LOG_FILE|LOG_COUT);
|
||||
TimeStop tm;
|
||||
|
||||
LOG("Allocator test:");
|
||||
HeapTest(256, 100000, true);
|
||||
LOG("Checked allocator test Passed");
|
||||
HeapTest(8192, 1000000, false);
|
||||
LOG("Quick allocator test Passed");
|
||||
HeapTest(8192, 100 * 1000000, false);
|
||||
LOG("Allocator test Passed");
|
||||
for(int pass = 0; pass < 2; pass++) {
|
||||
LOG("Allocator test:");
|
||||
HeapTest(256, 100000, true);
|
||||
LOG("Checked allocator test Passed");
|
||||
HeapTest(8192, 1000000, false);
|
||||
LOG("Quick allocator test Passed");
|
||||
HeapTest(8192, 100 * 1000000, false);
|
||||
LOG("Allocator test Passed");
|
||||
MemoryFreeThread();
|
||||
}
|
||||
LOG("Used: " << MemoryUsedKb() << " KB");
|
||||
LOG("============== OK " << tm);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,18 +2,14 @@
|
|||
|
||||
using namespace Upp;
|
||||
|
||||
struct Foo {
|
||||
const char *text;
|
||||
Foo(const char *text) : text(text) { LOG("Foo: " << text); }
|
||||
~Foo() { LOG("~Foo: " << text); }
|
||||
};
|
||||
String text;
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
Thread t;
|
||||
t.Run([] {
|
||||
thread_local Foo foo("local in Thread");
|
||||
LOG("In the thread");
|
||||
text = "This is just a test of thread shutdown";
|
||||
});
|
||||
t.Wait();
|
||||
DDUMP(text);
|
||||
}
|
||||
|
|
|
|||
14
upphub.root
Normal file
14
upphub.root
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
UPPIVERSE_BEGIN
|
||||
{
|
||||
"nests": [
|
||||
{ "name": "URR",
|
||||
"packages": [ "Urr" ],
|
||||
"description": "Simple UDP Request-Response protocol",
|
||||
"repository": "git@github.com:mirek-fidler/urr.git"
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
"https://www.ultimatepp.org/forums/index.php?t=msg&th=11264&start=0&"
|
||||
]
|
||||
}
|
||||
UPPIVERSE_END
|
||||
Loading…
Add table
Add a link
Reference in a new issue