예제 #1
0
unsigned short notmain ( void )
{
    uart_init();
    hexstring(0x1234);

    if(limit_test()) hexstring(0xBAD);

    hexstring(0x1234);
    return(0);
}
예제 #2
0
파일: test46.c 프로젝트: AjeyBohare/minix
int main(int argc, char *argv[])
{
  int superuser;
  start(46);

  superuser = (geteuid() == 0);

  if(!superuser) {
  	if(!(setuid(0) || seteuid(0))) {
		printf("Test 46 has to be run as root; test aborted\n");
		exit(1);
	}
  }

  limit_test();	/* Perform some tests on POSIX limits */
  api_test();	/* Perform some very basic API tests */
  group_test();	/* Perform some tests that mimic actual use */

  quit();

  return(-1);	/* Unreachable */
}