diff --git a/src/utils.cpp b/src/utils.cpp index b196d1c..5186526 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -25,9 +25,10 @@ void downloadWeightsifDoNotExist(const std::string& input_bin, const std::string std::string wget_cmd = "wget " + weights_url + " -O " + test_folder + "/weights.zip"; std::string unzip_cmd = "unzip " + test_folder + "/weights.zip -d" + test_folder; std::string rm_cmd = "rm " + test_folder + "/weights.zip"; - system(wget_cmd.c_str()); - system(unzip_cmd.c_str()); - system(rm_cmd.c_str()); + int err = 0; + err = system(wget_cmd.c_str()); + err = system(unzip_cmd.c_str()); + err = system(rm_cmd.c_str()); } } diff --git a/tests/imuodom/imuodom.cpp b/tests/imuodom/imuodom.cpp index 98ab1be..5c73786 100644 --- a/tests/imuodom/imuodom.cpp +++ b/tests/imuodom/imuodom.cpp @@ -77,6 +77,6 @@ int main() { out1 += ImuNet.odim1.tot(); } - system("cat path.txt | gnuplot -p -e \"set datafile separator ' '; plot '-'\""); + int err = system("cat path.txt | gnuplot -p -e \"set datafile separator ' '; plot '-'\""); return ret_cudnn; }