diff options
author | Monty Brandenberg <monty@lindenlab.com> | 2013-05-02 15:43:58 +0000 |
---|---|---|
committer | Monty Brandenberg <monty@lindenlab.com> | 2013-05-02 15:43:58 +0000 |
commit | b833f574bc20d4371b78f9c6b02bafe460a2e359 (patch) | |
tree | e0062f846e8b0e02a0ddaa00e14e5a0c65b1b95d /indra/llcommon/tests/llprocinfo_test.cpp | |
parent | 7992564e06ed4977c0f4d13fee4f858f6275542a (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/tests/llprocinfo_test.cpp')
-rw-r--r-- | indra/llcommon/tests/llprocinfo_test.cpp | 4 |
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); } |