mirror of
https://github.com/Noratrieb/libuwuc.git
synced 2026-01-15 12:15:05 +01:00
fopen and tests
This commit is contained in:
parent
862ef8dc22
commit
b795ee80c9
14 changed files with 97 additions and 45 deletions
|
|
@ -1,14 +1,12 @@
|
|||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
char *env = getenv("PATH");
|
||||
if (!env) {
|
||||
return 1;
|
||||
}
|
||||
assert(env && "PATH doesnt exist");
|
||||
|
||||
char *env2 = getenv(
|
||||
"__some absolutely NONSENSE that no one would ever define please..");
|
||||
if (env2) {
|
||||
return 1;
|
||||
}
|
||||
assert(!env2 && "nonsense environment variable found");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue