Skip to content

Commit

Permalink
fix: test cases on windows
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <xpf6677@163.com>
  • Loading branch information
Peefy committed Jan 11, 2024
1 parent 256c8d2 commit 4135136
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kclvm/tools/src/vet/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ mod test_expr_builder {
use std::{fs, panic, path::Path};

#[test]
#[cfg(not(target_os = "windows"))]
fn test_build_with_json_no_schema_name() {
for test_name in TEST_CASES {
let file_path = construct_full_path(&format!(
Expand Down Expand Up @@ -131,6 +132,7 @@ mod test_expr_builder {
}

#[test]
#[cfg(not(target_os = "windows"))]
/// Test `expr_builder.build()` with input json files.
fn test_build_json_with_filepath() {
for i in 0..TEST_CASES.len() {
Expand All @@ -157,6 +159,7 @@ mod test_expr_builder {
}

#[test]
#[cfg(not(target_os = "windows"))]
/// Test `expr_builder.build()` with input json files.
fn test_build_json_with_str() {
for i in 0..TEST_CASES.len() {
Expand Down

0 comments on commit 4135136

Please sign in to comment.