Blame test-lm-assumptions.c

Packit da863b
/* vim: set tabstop=8 shiftwidth=4 softtabstop=4 expandtab smarttab colorcolumn=80: */
Packit da863b
/*
Packit da863b
 * Copyright (c) 2016 Red Hat, Inc.
Packit da863b
 * Author: Nathaniel McCallum <npmccallum@redhat.com>
Packit da863b
 *
Packit da863b
 * This program is free software: you can redistribute it and/or modify it
Packit da863b
 * under the terms of the GNU Lesser General Public License as published by
Packit da863b
 * the Free Software Foundation, either version 2.1 of the License, or
Packit da863b
 * (at your option) any later version.
Packit da863b
 *
Packit da863b
 * This program is distributed in the hope that it will be useful,
Packit da863b
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit da863b
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit da863b
 * GNU Lesser General Public License for more details.
Packit da863b
 *
Packit da863b
 * You should have received a copy of the GNU Lesser General Public License
Packit da863b
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit da863b
 */
Packit da863b
Packit da863b
#include "test.h"
Packit da863b
#include <assert.h>
Packit da863b
Packit da863b
int
Packit da863b
main(int argc, char *argv[])
Packit da863b
{
Packit da863b
    crypt_free(test_format());
Packit da863b
Packit da863b
    /* Test the layout state. */
Packit da863b
    assert(test_layout((range_t[]) {
Packit da863b
        { 0, 1024 },                    /* LUKS header */
Packit Service b4924e
        { 1024, 3072, true },           /* Keyslot Area */
Packit Service b4924e
        { 0, 0 },
Packit da863b
    }));
Packit da863b
Packit da863b
    unlink(filename);
Packit da863b
    return 0;
Packit da863b
}
Packit da863b