actually fix the windows build of tests
This commit is contained in:
parent
0600639b79
commit
4d2f61a353
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue