1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:14:58 +00:00

Everywhere: Fix spelling mistakes

This commit is contained in:
mjz19910 2022-01-07 05:04:05 -07:00 committed by Linus Groh
parent 168063819d
commit 10ec98dd38
56 changed files with 90 additions and 90 deletions

View file

@ -29,7 +29,7 @@ static void test_getenv_preexisting()
assert_env("HOME", "/home/anon");
}
static void test_puttenv()
static void test_putenv()
{
char* to_put = strdup("PUTENVTEST=HELLOPUTENV");
int rc = putenv(to_put);
@ -41,7 +41,7 @@ static void test_puttenv()
// Do not free `to_put`!
}
static void test_settenv()
static void test_setenv()
{
int rc = setenv("SETENVTEST", "HELLO SETENV!", 0);
if (rc) {
@ -66,7 +66,7 @@ static void test_settenv()
assert_env("SETENVTEST", "Goodbye, friend!");
}
static void test_settenv_overwrite_empty()
static void test_setenv_overwrite_empty()
{
int rc = setenv("EMPTYTEST", "Forcefully overwrite non-existing envvar", 1);
if (rc) {
@ -85,9 +85,9 @@ int main(int, char**)
outln("Success!"); \
}
RUNTEST(test_getenv_preexisting);
RUNTEST(test_puttenv);
RUNTEST(test_settenv);
RUNTEST(test_settenv_overwrite_empty);
RUNTEST(test_putenv);
RUNTEST(test_setenv);
RUNTEST(test_setenv_overwrite_empty);
outln("PASS");
return 0;