Skip to content

Commit

Permalink
Engine: fixed AGS_RUN_TESTS check
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-mogilko committed Sep 9, 2019
1 parent b63123c commit 373b986
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Engine/main/main.cpp
Original file line number Diff line number Diff line change
@@ -400,7 +400,7 @@ const char *set_allegro_error(const char *format, ...)

int ags_entry_point(int argc, char *argv[]) {

#if AGS_RUN_TESTS
#ifdef AGS_RUN_TESTS
Test_DoAllTests();
#endif
main_init(argc, argv);
2 changes: 1 addition & 1 deletion Engine/test/test_all.cpp
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
//=============================================================================

#include "core/platform.h"
#if AGS_RUN_TESTS
#ifdef AGS_RUN_TESTS

#include "test/test_all.h"

2 changes: 1 addition & 1 deletion Engine/test/test_all.h
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
//=============================================================================

#include "core/platform.h"
#if AGS_RUN_TESTS
#ifdef AGS_RUN_TESTS

void Test_DoAllTests();
// Math tests
2 changes: 1 addition & 1 deletion Engine/test/test_file.cpp
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
//=============================================================================

#include "core/platform.h"
#if AGS_RUN_TESTS
#ifdef AGS_RUN_TESTS

#include <string.h>
#include "debug/assert.h"
2 changes: 1 addition & 1 deletion Engine/test/test_gfx.cpp
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
//=============================================================================

#include "core/platform.h"
#if AGS_RUN_TESTS
#ifdef AGS_RUN_TESTS

#include <stdlib.h>
#include "gfx/gfx_def.h"
2 changes: 1 addition & 1 deletion Engine/test/test_inifile.cpp
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
//=============================================================================

#include "core/platform.h"
#if AGS_RUN_TESTS
#ifdef AGS_RUN_TESTS

#include <string.h>
#include <algorithm>
2 changes: 1 addition & 1 deletion Engine/test/test_math.cpp
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
//=============================================================================

#include "core/platform.h"
#if AGS_RUN_TESTS
#ifdef AGS_RUN_TESTS

#include "debug/assert.h"
#include "util/scaling.h"
2 changes: 1 addition & 1 deletion Engine/test/test_memory.cpp
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
//=============================================================================

#include "core/platform.h"
#if AGS_RUN_TESTS
#ifdef AGS_RUN_TESTS

#include "util/memory.h"
#include "debug/assert.h"
2 changes: 1 addition & 1 deletion Engine/test/test_sprintf.cpp
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
//=============================================================================

#include "core/platform.h"
#if AGS_RUN_TESTS
#ifdef AGS_RUN_TESTS

#include <string.h>
#include "ac/game_version.h"
2 changes: 1 addition & 1 deletion Engine/test/test_string.cpp
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
//=============================================================================

#include "core/platform.h"
#if AGS_RUN_TESTS
#ifdef AGS_RUN_TESTS

#include <string.h>
#include <vector>
2 changes: 1 addition & 1 deletion Engine/test/test_version.cpp
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
//=============================================================================

#include "core/platform.h"
#if AGS_RUN_TESTS
#ifdef AGS_RUN_TESTS

#include <string.h>
#include "debug/assert.h"

0 comments on commit 373b986

Please sign in to comment.