summaryrefslogtreecommitdiff
path: root/tests/main.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-28 22:22:19 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-28 22:22:19 +0000
commit0640f87859a5a676b41783be4741a62f4d1ea266 (patch)
treef0a59916b4c1871965f459319add376f3ba5ed6b /tests/main.cpp
parente2ac08d5b40cfa3e4d001be35178ea0e4ef75aad (diff)
tests: More fixes and toolsets support
git-svn-id: http://pugixml.googlecode.com/svn/trunk@190 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/main.cpp')
-rw-r--r--tests/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index 664f171..1886412 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -8,9 +8,9 @@
test_runner* test_runner::_tests = 0;
size_t test_runner::_memory_fail_threshold = 0;
-size_t g_memory_total_size = 0;
+static size_t g_memory_total_size = 0;
-void* custom_allocate(size_t size)
+static void* custom_allocate(size_t size)
{
if (test_runner::_memory_fail_threshold > 0 && test_runner::_memory_fail_threshold < size)
return 0;
@@ -24,7 +24,7 @@ void* custom_allocate(size_t size)
}
}
-void custom_deallocate(void* ptr)
+static void custom_deallocate(void* ptr)
{
if (ptr)
{
@@ -34,7 +34,7 @@ void custom_deallocate(void* ptr)
}
}
-void replace_memory_management()
+static void replace_memory_management()
{
// create some document to touch original functions
{
@@ -87,7 +87,7 @@ int main()
if (failed != 0)
printf("FAILURE: %u out of %u tests failed.\n", failed, total);
else
- printf("Success: %d tests passed.\n", total);
+ printf("Success: %u tests passed.\n", total);
return failed;
}