Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check system() return values in testsuite
test/testfolderwatcher.cpp: In function 'void touch(const QString&)': test/testfolderwatcher.cpp:21:11: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 21 | system(cmd.toLocal8Bit()); | ~~~~~~^~~~~~~~~~~~~~~~~~~ test/testfolderwatcher.cpp: In function 'void mkdir(const QString&)': test/testfolderwatcher.cpp:33:11: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 33 | system(cmd.toLocal8Bit()); | ~~~~~~^~~~~~~~~~~~~~~~~~~ test/testfolderwatcher.cpp: In function 'void rmdir(const QString&)': test/testfolderwatcher.cpp:45:11: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 45 | system(cmd.toLocal8Bit()); | ~~~~~~^~~~~~~~~~~~~~~~~~~ test/testfolderwatcher.cpp: In function 'void rm(const QString&)': test/testfolderwatcher.cpp:56:11: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 56 | system(cmd.toLocal8Bit()); | ~~~~~~^~~~~~~~~~~~~~~~~~~ test/testfolderwatcher.cpp: In function 'void mv(const QString&, const QString&)': test/testfolderwatcher.cpp:67:11: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 67 | system(cmd.toLocal8Bit()); | ~~~~~~^~~~~~~~~~~~~~~~~~~ test/testfolderwatcher.cpp: In member function 'void TestFolderWatcher::testACreate()': test/testfolderwatcher.cpp:152:15: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 152 | system(cmd.toLocal8Bit()); | ~~~~~~^~~~~~~~~~~~~~~~~~~ test/testinotifywatcher.cpp: In member function 'void TestInotifyWatcher::cleanupTestCase()': test/testinotifywatcher.cpp:67:18: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 67 | system( QString("rm -rf %1").arg(_root).toLocal8Bit() ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
- Loading branch information