Fix copy/paste issue in Windows console

This commit is contained in:
Justine Tunney 2023-10-14 15:27:04 -07:00
parent bd48e6c666
commit 06c6baaf50
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
7 changed files with 30 additions and 37 deletions

View file

@ -23,6 +23,7 @@
#include "libc/log/check.h"
#include "libc/macros.internal.h"
#include "libc/mem/gc.internal.h"
#include "libc/str/str.h"
#include "libc/testlib/testlib.h"
#include "libc/x/x.h"
@ -48,5 +49,6 @@ TEST(getcwd, testWindows_addsFunnyPrefix) {
if (!IsWindows()) return;
char path[PATH_MAX];
ASSERT_NE(0, getcwd(path, sizeof(path)));
EXPECT_STARTSWITH("/C/", path);
path[1] = tolower(path[1]);
EXPECT_STARTSWITH("/c/", path);
}