Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (41 sloc) 0.523 kb
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "msg.h"
#include "ct/ct.h"
void
cttestset()
{
char *m;
set_message("foo");
m = get_message();
assert(strcmp("foo", m) == 0);
}
void
cttestdefault()
{
char *m;
m = get_message();
assert(strcmp("default message", m) == 0);
}
void
cttestfailure()
{
assert(1 == 2);
}
void
cttestfmt()
{
int n = 1;
assertf(n == 2, "n is %d", n);
}
void
cttestsegfault()
{
*(int*)0 = 0;
}
void
cttestexit()
{
exit(2);
}
Jump to Line
Something went wrong with that request. Please try again.