summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorMonty Brandenberg <monty@lindenlab.com>2013-05-02 15:43:58 +0000
committerMonty Brandenberg <monty@lindenlab.com>2013-05-02 15:43:58 +0000
commitb833f574bc20d4371b78f9c6b02bafe460a2e359 (patch)
treee0062f846e8b0e02a0ddaa00e14e5a0c65b1b95d /indra/llcommon
parent7992564e06ed4977c0f4d13fee4f858f6275542a (diff)
SH-4153 Port user and system cpu accounting from example program.
Windows resolution isn't good enough for a strictly increasing time test in the unit tests.
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/tests/llprocinfo_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llcommon/tests/llprocinfo_test.cpp b/indra/llcommon/tests/llprocinfo_test.cpp
index 0a4210dc07..12d5a695ee 100644
--- a/indra/llcommon/tests/llprocinfo_test.cpp
+++ b/indra/llcommon/tests/llprocinfo_test.cpp
@@ -83,8 +83,8 @@ void procinfo_object_t::test<2>()
LLProcInfo::getCPUUsage(user2, system2);
- ensure_equals("getCPUUsage() user value increases over time", user2 > user, true);
- ensure_equals("getCPUUsage() system value increases over time", system2 > system, true);
+ ensure_equals("getCPUUsage() user value doesn't decrease over time", user2 >= user, true);
+ ensure_equals("getCPUUsage() system value doesn't decrease over time", system2 >= system, true);
}