blob: e07c5d4f0ea6f664c339a11cc2fd83d455191266 [file] [log] [blame]
// SPDX-License-Identifier: Apache-2.0
// Copyright (C) 2018 IBM Corp.
#include "config.h"
#include "vpnor/pnor_partition_table.hpp"
#include <assert.h>
static constexpr auto BLOCK_SIZE = 4 * 1024;
int main()
{
namespace vpnor = openpower::virtual_pnor;
struct pnor_partition part;
std::string line;
line = "partition01=FOO,,00001000,80,ECC,PRESERVED";
try
{
openpower::virtual_pnor::parseTocLine(line, BLOCK_SIZE, part);
}
catch (vpnor::MalformedTocEntry& e)
{
return 0;
}
assert(false);
}