- private inheritance in IncVPSC #1874
- broken sorting in nearest_neighbor_graph_ann.cpp #1938
- memory leak in ANN bridge
+- gvpr on Windows does not support absolute paths #1780
## [2.46.1] - 2021-02-13
*
*/
-#ifdef _WIN32
-#include "windows.h"
-#include "shlwapi.h"
-#endif
-
#include <gvpr/gprstate.h>
#include <ast/error.h>
#include <ast/sfstr.h>
free (state->dp);
free (state);
}
-
-#ifdef WIN32_DLL
-int pathisrelative (char* path)
-{
- return PathIsRelative(path);
-
-}
-#endif
-
extern void initGPRState(Gpr_t *, Vmalloc_t *);
extern int validTVT(int);
-#ifdef _WIN32
- extern int pathisrelative (char* path);
-#endif
-
#endif
#ifdef __cplusplus
char *pathp = NULL;
size_t sz;
-#ifdef WIN32_DLL
- if (!pathisrelative(arg))
-#else
- if (strchr(arg, '/'))
-#endif
+ if (strchr(arg, PATHSEP))
return strdup(arg);
path = getenv("GVPRPATH");
# 'cluster_2 contains 3 nodes\n' \
# 'cluster_3 contains 3 nodes\n'
-@pytest.mark.xfail(strict=True) # FIXME
@pytest.mark.skipif(shutil.which('gvpr') is None, reason='GVPR not available')
@pytest.mark.skipif(platform.system() != 'Windows',
reason='only relevant on Windows')
stdout=subprocess.PIPE, universal_newlines=True)
output, _ = p.communicate()
- # FIXME: for some undiagnosed reason, the above command fails on Windows
- if platform.system() == 'Windows':
- assert p.returncode != 0
- return
-
assert p.returncode == 0, 'gvpr failed to process graph'
# we should have produced this graph without names like "%2" in it