mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
daemon: utils: New functions and tests.
These utility functions will be used in the OCaml inspection code.
This commit is contained in:
@@ -46,3 +46,13 @@ let () =
|
||||
let () =
|
||||
assert (proc_unmangle_path "\\040" = " ");
|
||||
assert (proc_unmangle_path "\\040\\040" = " ")
|
||||
|
||||
(* Test unix_canonical_path. *)
|
||||
let () =
|
||||
assert (unix_canonical_path "/" = "/");
|
||||
assert (unix_canonical_path "/usr" = "/usr");
|
||||
assert (unix_canonical_path "/usr/" = "/usr");
|
||||
assert (unix_canonical_path "/usr/local" = "/usr/local");
|
||||
assert (unix_canonical_path "///" = "/");
|
||||
assert (unix_canonical_path "///usr//local//" = "/usr/local");
|
||||
assert (unix_canonical_path "/usr///" = "/usr")
|
||||
|
||||
Reference in New Issue
Block a user