Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

rk_util_test.c File Reference


Detailed Description

Test cases for the functions in rk_util.h.

Definition in file rk_util_test.c.

Include dependency graph for rk_util_test.c:

Include dependency graph

Go to the source code of this file.

Functions

int test_get_usage (rk_resource_set_t rs, rk_resource_set_usage_t rsu, rk_resource_set_proc_cache_t pc)
 Test the rk_resource_set_get_usage function.
int main (int argc, char *argv[])


Function Documentation

int main int  argc,
char *  argv[]
 

Test:
The rk_resource_set_get_by_name function with an existing resource set.

The rk_resource_set_get_by_name function with a non-existent resource set.

The rk_resource_set_get_usage function when there are no processes in the set.

The rk_resource_set_get_usage function with no process cache.

The rk_resource_set_get_usage function with a process cache.

The rk_resource_set_get_usage function with a process cache after the processes have been removed.

Definition at line 89 of file rk_util_test.c.

References ensure, instrumentation_data, iPrintPointsAtExit(), NULL_RESOURCE_SET, require, rk_resource_set_attach_process(), rk_resource_set_create(), rk_resource_set_destroy(), rk_resource_set_detach_process(), rk_resource_set_get_by_name(), rk_resource_set_get_usage(), rk_resource_set_proc_cache_release(), rk_resource_set_t, and test_get_usage().

Here is the call graph for this function:

int test_get_usage rk_resource_set_t  rs,
rk_resource_set_usage_t  rsu,
rk_resource_set_proc_cache_t  pc
[static]
 

Test the rk_resource_set_get_usage function.

Parameters:
rs The resource set to query.
rsu The object to store the resource set usage data.
pc The process cache to use when querying the set.
Returns:
True if the test succeeded, false otherwise.

Definition at line 43 of file rk_util_test.c.

References NULL_RESOURCE_SET, require, rk_resource_set_get_usage(), and rk_resource_set_t.

Referenced by main().

Here is the call graph for this function:


Generated on Fri Oct 22 07:50:49 2004 for CPU Broker by  doxygen 1.3.9.1