mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
fixed crash in gbtrees test on Windows
This commit is contained in:
parent
fe72a6eeb3
commit
f8632f6da7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user