mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Add some tests for execve()
This commit is contained in:
parent
2526a9b8c7
commit
daca5499b9
6 changed files with 81 additions and 14 deletions
|
@ -100,6 +100,6 @@ TEST(mkntcmdline, fixAsBestAsWeCanForNow2) {
|
|||
|
||||
TEST(mkntcmdline, testWut) {
|
||||
char *argv[] = {"redbean.com", "--strace", NULL};
|
||||
EXPECT_NE(-1, mkntcmdline(cmdline, "C:\\Users\\jart\\redbean.com", argv));
|
||||
EXPECT_STREQ(u"C:\\Users\\jart\\redbean.com --strace", cmdline);
|
||||
EXPECT_NE(-1, mkntcmdline(cmdline, "C:\\Users\\jart\\𝑟𝑒𝑑𝑏𝑒𝑎𝑛.com", argv));
|
||||
EXPECT_STREQ(u"C:\\Users\\jart\\𝑟𝑒𝑑𝑏𝑒𝑎𝑛.com --strace", cmdline);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue