Add failing test for having one Arc ref to a Device

This commit is contained in:
Pierre Krieger 2016-04-14 14:18:04 +02:00
parent a4f057bbb2
commit f64bf72ab9

View File

@ -413,3 +413,15 @@ unsafe impl SynchronizedVulkanObject for Queue {
self.queue.lock().unwrap()
}
}
#[cfg(test)]
mod tests {
use std::sync::Arc;
#[test]
#[ignore] // FIXME: failing, fix me
fn one_ref() {
let (mut device, _) = gfx_dev_and_queue!();
assert!(Arc::get_mut(&mut device).is_some());
}
}