Commit 1f0d118
committed
ostree-ext/tar/export: add test_unmap_path and update test_map_path to use
We want to compare the actual os_str here, because `Eq` on Paths
canonicalizes and removes any trailing '/', but ostree makes a
distinction between trailing '/' or not. For example:
```
let p1 = Path::new("/foo");
let p2 = Path::new("/foo/");
assert_eq!(p1, p2);
println!("{:?} {:?}", p1.as_os_str(), p2.as_os_str());
```
Will print:
"/foo" "/foo/"
Signed-off-by: John Eckersberg <[email protected]>as_os_str()
1 parent db29e2f commit 1f0d118
1 file changed
+41
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
823 | | - | |
824 | 823 | | |
825 | | - | |
826 | | - | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
827 | 830 | | |
828 | 831 | | |
829 | | - | |
| 832 | + | |
830 | 833 | | |
831 | 834 | | |
832 | | - | |
833 | 835 | | |
834 | | - | |
835 | | - | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
836 | 870 | | |
837 | 871 | | |
838 | 872 | | |
| |||
0 commit comments