mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Delete some more unneeded Make code
This commit is contained in:
parent
58d74ede4c
commit
ce9bdbb0bf
13 changed files with 46 additions and 1300 deletions
|
@ -16,6 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/dce.h"
|
||||
#include "libc/str/path.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/testlib/testlib.h"
|
||||
|
@ -25,6 +26,7 @@ TEST(isabspath, testUniversal) {
|
|||
}
|
||||
|
||||
TEST(isabspath, testDosPaths) {
|
||||
if (!SupportsWindows()) return;
|
||||
ASSERT_FALSE(_isabspath("C:"));
|
||||
ASSERT_FALSE(_isabspath("C:foo.txt"));
|
||||
ASSERT_TRUE(_isabspath("C:/"));
|
||||
|
@ -34,15 +36,18 @@ TEST(isabspath, testDosPaths) {
|
|||
}
|
||||
|
||||
TEST(isabspath, testWin32Paths) {
|
||||
if (!SupportsWindows()) return;
|
||||
ASSERT_TRUE(_isabspath("\\\\?\\C:\\.."));
|
||||
ASSERT_TRUE(_isabspath("\\\\.\\C:\\Users\\jart\\foo.txt"));
|
||||
}
|
||||
|
||||
TEST(isabspath, testNtPaths) {
|
||||
if (!SupportsWindows()) return;
|
||||
ASSERT_TRUE(_isabspath("\\??\\C:\\Users\\jart\\foo.txt"));
|
||||
}
|
||||
|
||||
TEST(_classifypath, test) {
|
||||
if (!SupportsWindows()) return;
|
||||
EXPECT_EQ(0, _classifypath(""));
|
||||
EXPECT_EQ(0, _classifypath("xyz"));
|
||||
EXPECT_EQ(_PATH_DOS | _PATH_DEV, _classifypath("CON"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue