File: resource.rs

package info (click to toggle)
rust-test-with 0.15.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 512 kB
  • sloc: makefile: 2
file content (28 lines) | stat: -rw-r--r-- 513 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
fn main() {}

#[cfg(test)]
mod tests {
    #[test_with::mem(999GB)]
    #[test]
    fn mem_test_ignored() {
        panic!("should be ignored")
    }

    #[test_with::swap(999GB)]
    #[test]
    fn swap_test_ignored() {
        panic!("should be ignored")
    }

    #[test_with::cpu_core(32)]
    #[test]
    fn cpu_core_test_ignored() {
        panic!("should be ignored")
    }

    #[test_with::phy_core(32)]
    #[test]
    fn physical_cpu_core_test_ignored() {
        panic!("should be ignored")
    }
}