| 770 | } |
| 771 | |
| 772 | static bool CheckRelativePaths() |
| 773 | { |
| 774 | bool res = true; |
| 775 | res &= CheckRelativePath("/usr/share", "/bin/bash", "../../bin/bash"); |
| 776 | res &= CheckRelativePath("/usr/./share/", "/bin/bash", "../../bin/bash"); |
| 777 | res &= CheckRelativePath("/usr//share/", "/bin/bash", "../../bin/bash"); |
| 778 | res &= |
| 779 | CheckRelativePath("/usr/share/../bin/", "/bin/bash", "../../bin/bash"); |
| 780 | res &= CheckRelativePath("/usr/share", "/usr/share//bin", "bin"); |
| 781 | return res; |
| 782 | } |
| 783 | |
| 784 | static bool CheckCollapsePath(std::string const& path, |
| 785 | std::string const& expected, |
no test coverage detected
searching dependent graphs…