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 <stdlib.h> // for exit()
#ifdef TORRENT_WINDOWS
#include <direct.h> // for _chdir
#endif
int test_main();
extern bool tests_failure;
@ -115,7 +111,7 @@ int main()
return 1;
}
#ifdef TORRENT_WINDOWS
_chdir(dir);
SetCurrentDirectoryA(dir);
#else
chdir(dir);
#endif

View File

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