Commit f8632f6d authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed crash in gbtrees test on Windows

parent fe72a6ee
......@@ -166,6 +166,11 @@ int CV_GBTreesTest::TestSaveLoad()
tmpnam(model_file_name1);
tmpnam(model_file_name2);
if(model_file_name1[0] == '\\')
model_file_name1[0] = '_';
if(model_file_name2[0] == '\\')
model_file_name2[0] = '_';
gtb->save(model_file_name1);
gtb->calc_error(data, CV_TEST_ERROR, &test_resps1);
gtb->load(model_file_name1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment