コード例 #1
0
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;
}
コード例 #2
0
ファイル: excok.c プロジェクト: ABratovic/open-watcom-v2
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 );
}
コード例 #3
0
ファイル: dicetest.cpp プロジェクト: karagog/gutil
int main(int, char **)
{
	test_basics();
	test_uniformity();

	return 0;
}
コード例 #4
0
ファイル: test.c プロジェクト: DavidEGrayson/builtin_overflow
int main()
{
  test_errors();
  test_basics();
  test_add();
  zisolate();
  return 0;
}
コード例 #5
0
ファイル: msi_bitmap.c プロジェクト: quadcores/cbs_4.2.4
static int __init msi_bitmap_selftest(void)
{
    printk(KERN_DEBUG "Running MSI bitmap self-tests ...\n");

    test_basics();
    test_of_node();

    return 0;
}
コード例 #6
0
ファイル: test_template.cpp プロジェクト: NoraAl/banjo
int
main(int argc, char* argv[])
{
  Context cxt;

  test_basics(cxt);
  test_specialize(cxt);
  test_synthesis(cxt);
}
コード例 #7
0
ファイル: test.c プロジェクト: wjones127/jones-cache
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();
}
コード例 #8
0
ファイル: cordtest.c プロジェクト: VargMon/dd-wrt
main()
{
#   ifdef THINK_C
        printf("cordtest:\n");
#   endif
    test_basics();
    test_extras();
    test_printf();
    CORD_fprintf(stderr, "SUCCEEDED\n");
    return(0);
}
コード例 #9
0
ファイル: cordtest.c プロジェクト: comforx/bdwgc
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);
}
コード例 #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;
}
コード例 #11
0
ファイル: bp-permanent.c プロジェクト: teawater/binutils-gdb
int
main (void)
{
  setup ();
  test_basics ();
  test_next ();
#ifdef SIGNALS
  test_signal_nested ();
  test_signal_with_handler ();
  test_signal_no_handler ();
#endif
  return 0;
}
コード例 #12
0
ファイル: testmod_camel.c プロジェクト: reox/libelektra
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;
}
コード例 #13
0
ファイル: tfs.c プロジェクト: 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");
}
コード例 #14
0
ファイル: tfs.c プロジェクト: Nils-TUD/Escape
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();
}
コード例 #15
0
ファイル: tgroup.c プロジェクト: Logout22/Escape
static void test_group(void) {
	test_basics();
	test_errors();
}