|
|
|
|
|
|
|
|
|
|
xen-api
[Xen-API] [PATCH 05 of 12] [PCR0047] Refactors the "Quicktest_vm_memory_
# HG changeset patch
# User Jonathan Knowles <jonathan.knowles@xxxxxxxxxxxxx>
# Date 1265039943 0
# Node ID 10fc547a82d50bf41dd2172962e441da575bded4
# Parent 86c008b5d3aa275c7422fc5f5e32d8429fc681a7
[PCR0047] Refactors the "Quicktest_vm_memory_constraints" module to use the new
Ocamltest "make_function_test_case" constructor.
Signed-off-by: Jonathan Knowles <jonathan.knowles@xxxxxxxxxxxxx>
diff -r 86c008b5d3aa -r 10fc547a82d5
ocaml/xapi/quicktest_vm_memory_constraints.ml
--- a/ocaml/xapi/quicktest_vm_memory_constraints.ml Mon Feb 01 15:59:02
2010 +0000
+++ b/ocaml/xapi/quicktest_vm_memory_constraints.ml Mon Feb 01 15:59:03
2010 +0000
@@ -31,9 +31,8 @@
; static_max = scale static_max
}
-let test_reset_to_safe_defaults = make_test_case
+let test_reset_to_safe_defaults = make_function_test_case
"reset_to_safe_defaults"
- "Tests the reset_to_safe_defaults function."
(fun () ->
List.iter
(fun (input, output) ->
1 file changed, 1 insertion(+), 2 deletions(-)
ocaml/xapi/quicktest_vm_memory_constraints.ml | 3 +--
xen-api.hg-12.patch
Description: Text Data
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-API] [PATCH 00 of 12] [PCR-0047] Enhances XCP guest-memory-field-checking logic so that XCP can choose the most appropriate set of constraints to apply for the current context., Jonathan Knowles
- [Xen-API] [PATCH 04 of 12] [PCR0047] Adds to Ocamltest a new test case constructor "make_function_test_case", useful for making a test case that tests a single function, Jonathan Knowles
- [Xen-API] [PATCH 03 of 12] [PCR0047] Adds the predicates "VM_memory_constraints.are_{pinned, pinned_at_static_max, valid, valid_and_pinned_at_static_max}", which take a set of memory constraints and return true if (and only if) the constraints match some condition, Jonathan Knowles
- [Xen-API] [PATCH 02 of 12] [PCR0047] Renames function "VM_memory_constraints.valid" to "VM_memory_constraints.are_valid" in anticipation of using a common prefix for additional functions to be added in a further patch, Jonathan Knowles
- [Xen-API] [PATCH 05 of 12] [PCR0047] Refactors the "Quicktest_vm_memory_constraints" module to use the new Ocamltest "make_function_test_case" constructor,
Jonathan Knowles <=
- [Xen-API] [PATCH 07 of 12] [PCR0047] Adds functions "assert_{valid, valid_and_pinned_at_static_max, valid_for_current_context}" to module "Xapi_vm_memory_constraints". By default the function "assert_valid_for_current_context" acts as an alias for function "assert_valid", Jonathan Knowles
- [Xen-API] [PATCH 01 of 12] [PCR0047] Adds missing Ocamldoc comments and reformatting code in line with our Ocaml Best Practices Guide. Also removes a few anachronistic comments, Jonathan Knowles
- [Xen-API] [PATCH 08 of 12] [PCR0047] Replaces inline memory constraint validation code with calls to function "VM_memory_constraints.assert_valid_for_current_context", Jonathan Knowles
- [Xen-API] [PATCH 06 of 12] [PCR0047] Adds unit tests for functions "VM_memory_constraints.{are_pinned, are_pinned_at_static_max, are_valid, are_valid_and_pinned_at_static_max}, Jonathan Knowles
- [Xen-API] [PATCH 09 of 12] [PCR0047] Extending Ocamldoc and reformatting sections of code in line with our OCaml Best Practices Guide, Jonathan Knowles
- [Xen-API] [PATCH 11 of 12] [PCR0047] Adding context-dependent behaviour to function "Xapi_vm_memory_constraints.assert_valid_for_current_context", Jonathan Knowles
- [Xen-API] [PATCH 10 of 12] [PCR0047] Adding appropriate boilerplate code for Dynamic Memory Control ("dmc") to the restrictions module, Jonathan Knowles
- [Xen-API] [PATCH 12 of 12] Refactoring slightly the function "Restrictions.to_compact_string" for readability, Jonathan Knowles
- Re: [Xen-API] [PATCH 00 of 12] [PCR-0047] Enhances XCP guest-memory-field-checking logic so that XCP can choose the most appropriate set of constraints to apply for the current context., Jonathan Knowles
|
|
|
|
|