Skip to main content

runtime_free_swap

Attribute Macro runtime_free_swap 

Source
#[runtime_free_swap]
Expand description

Run test case when the example running and free swap enough

 // write as example in examples/*rs
 test_with::runner!(resource);
 #[test_with::module]
 mod resource {
     // Only works with enough free swap size
     #[test_with::runtime_free_swap(100GB)]
     fn test_ignored_free_swap_not_enough() {
         panic!("should be ignored")
     }
 }