From d832ed9079b851b196f96dd00aa73eb4d589a747 Mon Sep 17 00:00:00 2001 From: he1pa <18012015693@163.com> Date: Thu, 12 Sep 2024 21:51:08 +0800 Subject: [PATCH] test Signed-off-by: he1pa <18012015693@163.com> --- kclvm/driver/src/tests.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/kclvm/driver/src/tests.rs b/kclvm/driver/src/tests.rs index 632f7c5ee..7a2a58525 100644 --- a/kclvm/driver/src/tests.rs +++ b/kclvm/driver/src/tests.rs @@ -358,6 +358,16 @@ fn test_tool_fetch_metadata(tool: impl Toolchain) { assert_eq!(pkgs.len(), 1); assert!(pkgs.get("kcl4").is_some()); assert_eq!(pkgs.get("kcl4").unwrap().name, "kcl4"); + if pkgs + .get("kcl4") + .unwrap() + .manifest_path + .clone() + .canonicalize() + .is_err() + { + panic!("{}", format!("{:?}", pkgs.get("kcl4").unwrap().manifest_path)) + } assert_eq!( pkgs.get("kcl4") .unwrap()