// S : tags libc c todo // S : expect --result valid // S : cc -o test.bc -D_PDCLIB_BUILD -DTEST $file // S : verify -o nofail:malloc test.bc /* This is an example implementation of getenv() fit for use with POSIX kernels. */ #include #include #include "_PDCLIB_test.h" int main( void ) { TESTCASE( strcmp( getenv( "SHELL" ), "/bin/bash" ) == 0 ); /* TESTCASE( strcmp( getenv( "SHELL" ), "/bin/sh" ) == 0 ); */ return TEST_RESULTS; }