actually fix the windows build of tests

This commit is contained in:
Arvid Norberg
2013-06-17 05:50:53 +00:00
parent 0600639b79
commit 4d2f61a353
2 changed files with 2 additions and 6 deletions

View File

@@ -36,10 +36,6 @@ POSSIBILITY OF SUCH DAMAGE.
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> // for exit() #include <stdlib.h> // for exit()
#ifdef TORRENT_WINDOWS
#include <direct.h> // for _chdir
#endif
int test_main(); int test_main();
extern bool tests_failure; extern bool tests_failure;
@@ -115,7 +111,7 @@ int main()
return 1; return 1;
} }
#ifdef TORRENT_WINDOWS #ifdef TORRENT_WINDOWS
_chdir(dir); SetCurrentDirectoryA(dir);
#else #else
chdir(dir); chdir(dir);
#endif #endif

View File

@@ -61,7 +61,7 @@ def loop():
try: try:
last_rev = int(open(rev_file, 'r').read()) last_rev = int(open(rev_file, 'r').read())
except: except:
last_rev = run_tests.svn_info()[0] last_rev = run_tests.svn_info()[0] - 1
open(rev_file, 'w+').write('%d' % last_rev) open(rev_file, 'w+').write('%d' % last_rev)
while True: while True: