Skip to content

Commit

Permalink
use same test main for all systems
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedAbdeen21 committed Jul 14, 2024
1 parent d04948d commit 6cf09d3
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions datafusion/sqllogictest/bin/sqllogictests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,11 @@ use datafusion_common_runtime::SpawnedTask;

const TEST_DIRECTORY: &str = "test_files/";
const PG_COMPAT_FILE_PREFIX: &str = "pg_compat_";
const STACK_SIZE: usize = 2 * 1024 * 1024 + 512 * 1024; // 2.5 MBs, the default 2 MBs is currently too small

#[cfg(target_family = "windows")]
pub fn main() -> Result<()> {
tokio::runtime::Builder::new_multi_thread()
.thread_stack_size(2 * 1024 * 1024 + 512 * 1024)
.enable_all()
.build()
.unwrap()
.block_on(run_tests())
}

#[cfg(not(target_family = "windows"))]
pub fn main() -> Result<()> {
tokio::runtime::Builder::new_multi_thread()
.thread_stack_size(2 * 1024 * 1024 + 512 * 1024)
.thread_stack_size(STACK_SIZE)
.enable_all()
.build()
.unwrap()
Expand Down

0 comments on commit 6cf09d3

Please sign in to comment.