Skip to content

Commit 5fb6f95

Browse files
committed
remove unnecessary test
1 parent 2b60f29 commit 5fb6f95

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

  • cspuz_core/src/integration/tests

cspuz_core/src/integration/tests/mod.rs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@ use crate::csp::*;
22
use crate::domain::Domain;
33
use crate::integration::*;
44
use crate::propagators::graph_division::GraphDivisionOptions;
5-
#[cfg(feature = "backend-glucose-rs")]
6-
use crate::sat::Backend;
7-
#[cfg(feature = "backend-glucose-rs")]
8-
use std::sync::{Mutex, OnceLock};
9-
10-
#[cfg(feature = "backend-glucose-rs")]
11-
fn env_lock() -> &'static Mutex<()> {
12-
static LOCK: OnceLock<Mutex<()>> = OnceLock::new();
13-
LOCK.get_or_init(|| Mutex::new(()))
14-
}
155

166
struct IntegrationTester<'a> {
177
original_constr: Vec<Stmt>,
@@ -568,26 +558,6 @@ fn test_integration_solver_iterator() {
568558
assert_eq!(n_ans, 14);
569559
}
570560

571-
#[cfg(feature = "backend-glucose-rs")]
572-
#[test]
573-
fn test_integration_default_backend_from_env_glucose_rs() {
574-
let _guard = env_lock().lock().unwrap();
575-
let old_default = Config::default();
576-
let old_env = std::env::var("CSPUZ_CORE_DEFAULT_BACKEND").ok();
577-
578-
std::env::set_var("CSPUZ_CORE_DEFAULT_BACKEND", "glucose_rs");
579-
Config::set_default(Config::initial_default());
580-
581-
let solver = IntegratedSolver::new();
582-
assert!(matches!(solver.sat.get_backend(), Backend::GlucoseRs));
583-
584-
match old_env {
585-
Some(v) => std::env::set_var("CSPUZ_CORE_DEFAULT_BACKEND", v),
586-
None => std::env::remove_var("CSPUZ_CORE_DEFAULT_BACKEND"),
587-
}
588-
Config::set_default(old_default);
589-
}
590-
591561
#[cfg(not(feature = "backend-glucose-rs"))] // TODO
592562
#[test]
593563
fn test_integration_perf_stats() {

0 commit comments

Comments
 (0)