Exemplo n.º 1
0
int main(int ac, char **av)
{
	int lc;

#if defined (__s390__) || (__s390x__) || (__ia64__)
	/* Disables the test in case the kernel version is lower than 2.6.12 and arch is s390 */
	if ((tst_kvercmp(2, 6, 12)) < 0) {
		tst_resm(TWARN,
			 "This test can only run on kernels that are 2.6.12 and higher");
		exit(0);
	}
#endif

	tst_parse_opts(ac, av, NULL, NULL);

	setup();

	for (lc = 0; TEST_LOOPING(lc); lc++) {

		tst_count = 0;

		test_nonlinear(fd1);
		tst_resm(TPASS, "Non-Linear shm file OK");

		test_nonlinear(fd2);
		tst_resm(TPASS, "Non-Linear /tmp/ file OK");
	}

	/* clean up and exit */
	cleanup();
	tst_exit();

}
Exemplo n.º 2
0
Arquivo: test.c Projeto: FMX/gsl
int
main (void)
{
  gsl_ieee_env_setup();

  /* test linear regression */
  test_linear();

  /* test nonlinear regression */
  test_nonlinear();

  exit (gsl_test_summary ());
}