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