actually fix the windows build of tests
This commit is contained in:
@@ -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
|
||||||
|
@@ -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:
|
||||||
|
Reference in New Issue
Block a user