Blame checkmk/test/multiple_everything/in

Packit 0b5880
/* Multiple everything... */
Packit 0b5880
Packit 0b5880
#include <stdlib.h>
Packit 0b5880
#include <errno.h>
Packit 0b5880
#include <stdio.h>
Packit 0b5880
Packit 0b5880
void print_message(const char *msg, size_t msgsz)
Packit 0b5880
{
Packit 0b5880
    int nc;
Packit 0b5880
Packit 0b5880
    nc = printf("%s", msg);
Packit 0b5880
    fail_unless(nc == msgsz, "failed to print completely: %s",
Packit 0b5880
                strerror(errno));
Packit 0b5880
}
Packit 0b5880
Packit 0b5880
# suite A Suite
Packit 0b5880
Packit 0b5880
# tcase A Test Case
Packit 0b5880
Packit 0b5880
# test hello_world
Packit 0b5880
    const char msg[] = "Hello, world!\n";
Packit 0b5880
    print_message(msg, sizeof msg - 1);
Packit 0b5880
Packit 0b5880
# test neverending_story
Packit 0b5880
    const char msg[] = "Bastian Balthazar Bux\n";
Packit 0b5880
    print_message(msg, sizeof msg - 1);
Packit 0b5880
Packit 0b5880
# tcase Another Test Case
Packit 0b5880
Packit 0b5880
# test math_problem
Packit 0b5880
    fail_unless(1 + 1 == 2, "Something's broken...");
Packit 0b5880
Packit 0b5880
# suite Another Suite
Packit 0b5880
Packit 0b5880
# tcase A Test Case for Another Suite
Packit 0b5880
Packit 0b5880
# test more_math
Packit 0b5880
    fail_unless(2/2 == 1, "Another weird math result");
Packit 0b5880
Packit 0b5880
# tcase A Basket Case
Packit 0b5880
Packit 0b5880
# test weave
Packit 0b5880
    int i;
Packit 0b5880
    const char msg[] = "###\n";
Packit 0b5880
Packit 0b5880
    for (i=0; i != 3; ++i)
Packit 0b5880
        print_message(row, sizeof row - 1);