diff --git a/test/testing_scripts/creat_test.cpp b/test/testing_scripts/creat_test.cpp index 447b3a778f220db60b615dbf28872a4660dbbe48..b2c237d286b0793a8d91587a211155ed36c2c922 100644 --- a/test/testing_scripts/creat_test.cpp +++ b/test/testing_scripts/creat_test.cpp @@ -30,7 +30,7 @@ int main(int argc, char *argv[]) { auto filepath = path + filename; unsigned int length = atoi(argv[3]); - srand(505); + srand(506); char *data = (char *)malloc((length) * sizeof(char)); if (data == NULL) { @@ -58,11 +58,10 @@ int main(int argc, char *argv[]) { if (write_rc != length) { std::cout << "write() call returned wrong value rc=" << std::to_string(write_rc) << std::endl; } else { - auto fsync_rc = fsync(fd); - if (fsync_rc != 0) { - std::cout << "write's fsync() failed errno=" << std::to_string(errno) << std::endl; - } - close(fd); +// if (fsync(fd) != 0) { +// std::cout << "write's fsync() failed errno=" << std::to_string(errno) << std::endl; +// } +// close(fd); std::cout << "sys open / write ran without failure" << std::endl; } } @@ -80,10 +79,10 @@ int main(int argc, char *argv[]) { std::cout << "fwrite() call returned wrong value rc=" << std::to_string(fwrite_rc) << std::endl; } else { - if (fflush(stream_file) != 0) { - std::cout << "fwrite's fflush() failed with errno=" << std::to_string(errno) << std::endl; - } - fclose(stream_file); +// if (fflush(stream_file) != 0) { +// std::cout << "fwrite's fflush() failed with errno=" << std::to_string(errno) << std::endl; +// } +// fclose(stream_file); std::cout << "fopen / fwrite ran without failure" << std::endl; } }