Skip to content

Commit 56a4e1d

Browse files
committed
test: update file size checks for log and output files
* Changed file size checks to use unsigned comparison. * Ensures compatibility with potential changes in file size representation across different platforms.
1 parent 2457edf commit 56a4e1d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dds-misc-lib/tests/Test_Process.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ BOOST_AUTO_TEST_CASE(test_MiscCommon_execute_dds_daemonize)
238238
fs::path logFile{ tmpDir };
239239
logFile /= "hostname.out.log";
240240
BOOST_TEST(fs::exists(logFile));
241-
BOOST_TEST(fs::file_size(logFile) > 0);
241+
BOOST_TEST(fs::file_size(logFile) > 0u);
242242
}
243243

244244
//=============================================================================
@@ -253,7 +253,7 @@ BOOST_AUTO_TEST_CASE(test_MiscCommon_excute_in_grandchildren)
253253
// let process finish
254254
this_thread::sleep_for(std::chrono::seconds(3));
255255
BOOST_TEST(fs::exists(outputfile));
256-
BOOST_TEST(fs::file_size(outputfile) > 0);
256+
BOOST_TEST(fs::file_size(outputfile) > 0u);
257257
}
258258

259259
BOOST_AUTO_TEST_SUITE_END();

0 commit comments

Comments
 (0)