diff --git a/stepmania/src/tests/test_audio_readers.cpp b/stepmania/src/tests/test_audio_readers.cpp index bf75d60e47..b7a58e2ef1 100644 --- a/stepmania/src/tests/test_audio_readers.cpp +++ b/stepmania/src/tests/test_audio_readers.cpp @@ -3,12 +3,16 @@ #include "RageSoundReader_MP3.h" #include "RageTimer.h" #include "RageInputDevice.h" +#include "RageFileManager.h" #include #include #include #include +CString InitialWorkingDirectory = "."; +CString DirOfExecutable = "."; + void ReadData( SoundReader *snd, int ms, /* start */ char *buf, /* out */ @@ -243,6 +247,7 @@ bool test_file( const char *fn, float expected_fix ) } int main() { + FILEMAN = new RageFileManager; LOG = new RageLog(); LOG->ShowLogOutput( true ); LOG->SetFlushing( true ); diff --git a/stepmania/src/tests/test_file_readers.cpp b/stepmania/src/tests/test_file_readers.cpp index 4a9587a282..f762782d9c 100644 --- a/stepmania/src/tests/test_file_readers.cpp +++ b/stepmania/src/tests/test_file_readers.cpp @@ -2,8 +2,12 @@ #include "RageLog.h" #include "RageFile.h" #include "RageUtil.h" +#include "RageUtil_FileDB.h" #include "RageFileManager.h" +CString InitialWorkingDirectory = "."; +CString DirOfExecutable = "."; + void CreateBinaryTestFile( FILE *out, int size ) { char c = 0; @@ -228,11 +232,11 @@ void TestSeek( bool relative ) int main() { + FILEMAN = new RageFileManager; + LOG = new RageLog(); LOG->ShowLogOutput( true ); LOG->SetFlushing( true ); - - FILEMAN = new RageFileManager; /* Create a binary file to test with. */ CreateBinaryTestFile( "test.1", 4096 );