summaryrefslogtreecommitdiff
path: root/test/basictests.c
blob: 1e0a828e16610cde41424587c229df1f19b8b1da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* test/basictests.c
 *
 * Basic tests for the test suite for libwapcaplet
 *
 * Copyright 2009 The NetSurf Browser Project
 *                Daniel Silverstone <dsilvers@netsurf-browser.org>
 */

#include <check.h>
#include <stdlib.h>

#include "tests.h"

START_TEST (test_lwc_context_creation_bad_alloc)
{
        lwc_context *ctx = NULL;
        lwc_error err;
        
        err = lwc_create_context(NULL, NULL, &ctx);
}
END_TEST



void
lwc_basic_suite(SRunner *sr)
{
        Suite *s = suite_create("libwapcaplet: Basic tests");
        TCase *tc_basic = tcase_create("Creation/Destruction");
        
        tcase_add_test_raise_signal(tc_basic, test_lwc_context_creation_bad_alloc, SIGABRT);
        
        suite_add_tcase(s, tc_basic);
        srunner_add_suite(sr, s);
}