From 9526907cba46063ea9b9358b66d8a944ee9e213f Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Thu, 20 Dec 2012 18:46:54 +0400 Subject: [PATCH] Use .yml.gz format to reduce space requirement from ~260Mb to ~17Mb for ml tests The size of temporary files is an issue on mobile platforms. --- modules/ml/test/test_save_load.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ml/test/test_save_load.cpp b/modules/ml/test/test_save_load.cpp index 707ba911c1..889b98b62b 100644 --- a/modules/ml/test/test_save_load.cpp +++ b/modules/ml/test/test_save_load.cpp @@ -64,11 +64,11 @@ int CV_SLMLTest::run_test_case( int testCaseIdx ) if( code == cvtest::TS::OK ) { get_error( testCaseIdx, CV_TEST_ERROR, &test_resps1 ); - fname1 = tempfile(); + fname1 = tempfile(".yml.gz"); save( fname1.c_str() ); load( fname1.c_str() ); get_error( testCaseIdx, CV_TEST_ERROR, &test_resps2 ); - fname2 = tempfile(); + fname2 = tempfile(".yml.gz"); save( fname2.c_str() ); } else