Branch: Tag:

2018-02-22

2018-02-22 14:05:44 by Karl Gustav Sterneberg <kg@roxen.com>

Added more verifications in test base class. [WS-168]

24:      string filesystem_read_file(string path);    - int filesystem_check_content(string path, string data) + int filesystem_check_content(string path, string expected_data)   { -  return filesystem_read_file(path) == data; +  string actual_data = filesystem_read_file(path); +  TEST_EQUAL(actual_data, expected_data); +  return actual_data == expected_data;   }      int filesystem_compare_files(string first_path, string other_path)
195:    if (!((res[0] >= 200) && (res[0] < 300))) return 0;       low_recursive_unlock(src_path, locks); -  +  test_false(filesystem_check_exists, src_path); +  test_true(filesystem_check_exists, dst_path); +  test_true(filesystem_check_content, dst_path, expected_content);    return    !filesystem_check_exists(src_path) &&    filesystem_check_content(dst_path, expected_content);