ppc_test.cpp

来自「浙江大学的悟空嵌入式系统模拟器」· C++ 代码 · 共 41 行

CPP
41
字号
///==================================================
/**
 * @file        PPC_Test.cpp
 * @brief      
 * @author      Chenfeng Zhou <ini_autumn@163.com> 
 *
 * Created    : <2005-02-24 16:01:44 by Cheney Chow>
 * Last update: <2005-02-24 16:06:46 by Cheney Chow>
 */
///==================================================


#include "Global.h"
#include "Integer.h"
#include "Utils.h"

Core::Module *g_loader = NULL;



int main (int argc, char *argv[]) 
{
	PRE_ROUTINE();

    // Get the top level suite from the registry
	CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();

    // Adds the test to the list of test to run
	CppUnit::TextUi::TestRunner runner;
	runner.addTest( suite );

    // Change the default outputter to a compiler error format outputter
	runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),
                                                         std::cerr ) );
    // Run the tests.
	bool wasSucessful = runner.run();

    // Return error code 1 if the one of test failed.
	return wasSucessful ? 0 : 1;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?