int main (int argc, char ** argv)
{
	printf ("INTERNALNOTIFICATION     TESTS\n");
	printf ("==============================\n\n");

	init (argc, argv);

	test_basics ();
	test_updateOnKdbGet ();
	test_updateOnKdbSet ();

	printf ("\nregisterInt\n-----------\n");
	test_intUpdateWithCascadingKey ();
	test_intNoUpdateWithInvalidValue ();
	test_intUpdateWithValueNotYetExceedingIntMax ();
	test_intNoUpdateWithValueExceedingIntMax ();
	test_intUpdateWithValueNotYetExceedingIntMin ();
	test_intNoUpdateWithValueExceedingIntMin ();

	printf ("\nregisterCallback\n----------------\n");
	test_callbackCalledWithKey ();
	test_callbackCalledWithChangeDetection ();

	printf ("\ntestmod_internalnotification RESULTS: %d test(s) done. %d error(s).\n", nbTest, nbError);

	return nbError;
}
Exemplo n.º 2
0
int main()
{
    printf( "EXCOK: start\n" );
    set_terminate( &no_handler );
    test_basics();
    test_scalars();
    init_class();
    test_class();
    test_cl_ptrs();
    test_passthru();
    test_rethrow();
    try {
        ++throws;
        set_unexpected( &unexp );
        test_unexpected();
    } catch( long l ) {
        ++catches;
        if( l != 675L ) {
            printf( "unexpected failure %l\n", l );
        }
    }
    if( throws != catches ) {
        printf( "catches != throws\n" );
    }
    set_terminate( &my_term );
    test_term();

    printf( "terminate did not abort\n" );
    return( 0 );
}
Exemplo n.º 3
0
int main(int, char **)
{
	test_basics();
	test_uniformity();

	return 0;
}
Exemplo n.º 4
0
int main()
{
  test_errors();
  test_basics();
  test_add();
  zisolate();
  return 0;
}
Exemplo n.º 5
0
static int __init msi_bitmap_selftest(void)
{
    printk(KERN_DEBUG "Running MSI bitmap self-tests ...\n");

    test_basics();
    test_of_node();

    return 0;
}
Exemplo n.º 6
0
int
main(int argc, char* argv[])
{
  Context cxt;

  test_basics(cxt);
  test_specialize(cxt);
  test_synthesis(cxt);
}
Exemplo n.º 7
0
int main(int argc, char *argv[])
{
    test_basics();
    test_get_modified();
    test_deletion();
    test_get_nonexistant();
    test_too_big();
    test_copying_keys();
    test_copying_vals();
    test_lru();
}
Exemplo n.º 8
0
main()
{
#   ifdef THINK_C
        printf("cordtest:\n");
#   endif
    test_basics();
    test_extras();
    test_printf();
    CORD_fprintf(stderr, "SUCCEEDED\n");
    return(0);
}
Exemplo n.º 9
0
int main(void)
{
#   ifdef THINK_C
        printf("cordtest:\n");
#   endif
    GC_INIT();
    test_basics();
    test_extras();
    test_printf();
    CORD_fprintf(stdout, "SUCCEEDED\n");
    return(0);
}
Exemplo n.º 10
0
int main (int argc, char ** argv)
{
	printf ("TEMPLATE     TESTS\n");
	printf ("==================\n\n");

	init (argc, argv);

	test_basics ();

	printf ("\ntestmod_template RESULTS: %d test(s) done. %d error(s).\n", nbTest, nbError);

	return nbError;
}
Exemplo n.º 11
0
int
main (void)
{
  setup ();
  test_basics ();
  test_next ();
#ifdef SIGNALS
  test_signal_nested ();
  test_signal_with_handler ();
  test_signal_no_handler ();
#endif
  return 0;
}
Exemplo n.º 12
0
int main (int argc, char ** argv)
{
	printf ("🐪 Camel Tests\n");
	printf ("===============\n\n");

	init (argc, argv);

	test_basics ();
	test_get ();

	printf ("\nResults: %d Test%s done — %d error%s.\n", nbTest, nbTest != 1 ? "s" : "", nbError, nbError != 1 ? "s" : "");

	return nbError;
}
Exemplo n.º 13
0
Arquivo: tfs.c Projeto: jarn0x/Escape
static void test_fs(void) {
	struct stat info;
	if(stat("/bin",&info) < 0)
		error("Unable to stat /bin");
	/* don't try that on readonly-filesystems */
	if((info.st_mode & S_IWUSR)) {
		test_basics();
		test_perms();
		test_rename();
		test_largeFile();
	}
	else
		printf("WARNING: Detected readonly filesystem; skipping the test\n\n");
}
Exemplo n.º 14
0
static void test_fs(void) {
	struct stat info;
	if(stat("/bin",&info) < 0)
		error("Unable to stat /bin");

	if(getuid() != ROOT_UID) {
		printf("You are not root; skipping the test\n\n");
		return;
	}

	/* don't try that on readonly-filesystems */
	if(!(info.st_mode & S_IWUSR)) {
		printf("WARNING: Detected readonly filesystem; skipping the test\n\n");
		return;
	}

	test_basics();
	test_perms();
	test_rename();
	test_largeFile();
	test_symlinks();
}
Exemplo n.º 15
0
static void test_group(void) {
	test_basics();
	test_errors();
}