BurritOS now read configuration file
This commit is contained in:
@@ -227,13 +227,13 @@ impl Condition {
|
||||
mod test {
|
||||
use std::{rc::Rc, cell::RefCell};
|
||||
|
||||
use crate::{kernel::{thread::Thread, synch::Lock, thread_manager::ThreadManager}, simulator::machine::Machine};
|
||||
use crate::{kernel::{thread::Thread, synch::Lock, thread_manager::ThreadManager}, simulator::machine::Machine, utility::cfg::get_debug_configuration};
|
||||
|
||||
|
||||
|
||||
#[test]
|
||||
fn test_lock_simple() {
|
||||
let mut machine = Machine::new(true);
|
||||
let mut machine = Machine::new(true, get_debug_configuration());
|
||||
let mut tm = ThreadManager::new(true);
|
||||
let thread = Rc::new(RefCell::new(Thread::new("test_lock")));
|
||||
tm.ready_to_run(Rc::clone(&thread));
|
||||
@@ -255,7 +255,7 @@ mod test {
|
||||
let thread1 = Rc::new(RefCell::new(Thread::new("test_lock1")));
|
||||
let thread2 = Rc::new(RefCell::new(Thread::new("test_lock2")));
|
||||
|
||||
let mut machine = Machine::new(true);
|
||||
let mut machine = Machine::new(true, get_debug_configuration());
|
||||
let mut tm = ThreadManager::new(true);
|
||||
|
||||
tm.ready_to_run(Rc::clone(&thread1));
|
||||
|
||||
Reference in New Issue
Block a user