Skip to content

Commit fb1d740

Browse files
committed
Add test for locating JAVA_HOME using the java executable
1 parent 0f86783 commit fb1d740

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,4 +278,9 @@ mod unit_tests {
278278
println!("locate_java_home: {}", locate_java_home().unwrap());
279279
println!("locate_jvm_dyn_library: {}", locate_jvm_dyn_library().unwrap());
280280
}
281+
282+
#[test]
283+
fn locate_java_from_exec_test() {
284+
println!("do_locate_java_home: {}", do_locate_java_home().unwrap());
285+
}
281286
}

0 commit comments

Comments
 (0)