Esempio n. 1
0
int _tmain(int argc, _TCHAR *argv[])
{
	testThreadPool();

    getchar();
    return 0;
}
Esempio n. 2
0
static void startTesting(void)
{
    while (1)
    {
        int choice = -1;
        if(scanf("%d", &choice) == 1)
        {
            switch (choice)
            {
                case 0:
                    printf("Terminating test.\n");
                    return;
                case 1:
                    testThreadPool();
                    break;
                default:
                    printf("Invalid input.\n");
                    menu();
                    break;
            }
        }
        else
        {
            printf("Invalid input.\n");
            menu();
        }

        // clear input buffer
        while (getchar() != '\n');
    }
}
Esempio n. 3
0
int main()
{
    setLog();
    testThreadPool();
    testSHA1();
    testUtf8();
    testFile();
    testUrl();
    return 0;
}