aesop Repository branch, master, updated. db38d9e639f3cb955481442a7f9003b6f09c9da4
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "aesop Repository". The branch, master has been updated via db38d9e639f3cb955481442a7f9003b6f09c9da4 (commit) from 1dec09792c03cba518154b7cb476277b8d7e6139 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit db38d9e639f3cb955481442a7f9003b6f09c9da4 Author: Phil Carns <[email protected]> Date: Thu Apr 5 11:58:35 2012 -0400 test program for #38 resource_unregister() bug ----------------------------------------------------------------------- Summary of changes: tests/module.mk.in | 3 +- tests/resource-register.c | 53 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletions(-) create mode 100644 tests/resource-register.c Diff of changes: diff --git a/tests/module.mk.in b/tests/module.mk.in index e8e3a91..4840b0f 100644 --- a/tests/module.mk.in +++ b/tests/module.mk.in @@ -1,7 +1,8 @@ DIR := tests AETESTSRC += $(DIR)/test-hints.ae - AETESTSRC += $(DIR)/blocking-overhead.ae +TESTSRC += $(DIR)/resource-register.c + diff --git a/tests/resource-register.c b/tests/resource-register.c new file mode 100644 index 0000000..e2c2f2b --- /dev/null +++ b/tests/resource-register.c @@ -0,0 +1,53 @@ +/* + * (C) 2009 The University of Chicago + * + * See COPYRIGHT in top-level directory. + */ +#include <assert.h> +#include <aesop/aesop.h> + +#include "resource.h" + +struct ae_resource rsc1 = +{ + .resource_name = "rsc1", + .poll_context = NULL, + .cancel = NULL, + .config_array = NULL, +}; + +struct ae_resource rsc2 = +{ + .resource_name = "rsc2", + .poll_context = NULL, + .cancel = NULL, + .config_array = NULL, +}; + +int main(int argc, char **argv) +{ + int ret; + int rsc1_id; + int rsc2_id; + + ret = ae_resource_register(&rsc1, &rsc1_id); + assert(ret == 0); + + ret = ae_resource_register(&rsc2, &rsc2_id); + assert(ret == 0); + + ae_resource_unregister(rsc1_id); + + ae_resource_unregister(rsc2_id); + + return 0; +} + +/* + * Local variables: + * c-indent-level: 4 + * c-basic-offset: 4 + * End: + * + * vim: ft=c ts=8 sts=4 sw=4 expandtab + */ hooks/post-receive -- aesop Repository
participants (1)
-
noreply@mcs.anl.gov