source: trunk/test/lol-test.cpp @ 911

Last change on this file since 911 was 911, checked in by sam, 9 years ago

test: add a few Visual Studio 2010 project files and fix testsuite code
so that it builds properly.

  • Property svn:keywords set to Id
File size: 749 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
10
11#if defined HAVE_CONFIG_H
12#   include "config.h"
13#endif
14
15#include <cstdio>
16
17#include <cppunit/TextTestRunner.h>
18#include <cppunit/extensions/TestFactoryRegistry.h>
19
20int main(int argc, char *argv[])
21{
22    CppUnit::TextTestRunner runner;
23    runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
24
25    int ret = !runner.run();
26
27#if defined _WIN32
28    getchar();
29#endif
30    return ret;
31}
32
Note: See TracBrowser for help on using the repository browser.