exploitation.cpp
No OneTemporary

File Metadata

Created
Thu, Jul 9, 7:46 AM

exploitation.cpp

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* exploitation.cpp
*
* Author: pgess <v.melnychenko@xreate.org>
* Created on February 15, 2018, 6:17 PM
*/
#include "xreatemanager.h"
#include "gtest/gtest.h"
using namespace xreate;
TEST(Exploitation, test1){
FILE* input = fopen("scripts/exploitation/test1.xreate","r");
assert(input != nullptr);
std::unique_ptr<XreateManager> man(XreateManager::prepare(input));
int (*main)() = (int (*)())man->run();
int result = main();
ASSERT_EQ(1, result);
}

Event Timeline