From 3fca261d7645353fc4fd44f56c8b54aec54dd22e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Wojdy=C5=82a?= Date: Sat, 11 Apr 2020 13:15:29 +0200 Subject: [PATCH] [LibOS] Add size checks to seek_tell FS test --- LibOS/shim/test/fs/test_fs.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LibOS/shim/test/fs/test_fs.py b/LibOS/shim/test/fs/test_fs.py index de25f9e1..e3139eb3 100644 --- a/LibOS/shim/test/fs/test_fs.py +++ b/LibOS/shim/test/fs/test_fs.py @@ -139,6 +139,10 @@ class TC_00_FileSystem(RegressionTestCase): self.assertIn('ftell(' + output_path_2 + ') output end 2 OK: ' + str(size + 4098), stdout) self.assertIn('fclose(' + output_path_2 + ') output OK', stdout) + expected_size = size + 4098 + self.verify_size(output_path_1, expected_size) + self.verify_size(output_path_2, expected_size) + def test_115_seek_tell(self): input_path = self.INPUT_FILES[-1] # existing file output_path_1 = os.path.join(self.OUTPUT_DIR, 'test_115a') # writable files