mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
Fix copy/paste issue in Windows console
This commit is contained in:
parent
bd48e6c666
commit
06c6baaf50
7 changed files with 30 additions and 37 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue