Skip to content

Commit

Permalink
Fix compile errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-tsirpanis committed Jun 22, 2023
1 parent 5363396 commit 33e16bb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
22 changes: 11 additions & 11 deletions test/src/unit-gcs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ TEST_CASE_METHOD(GCSFx, "Test GCS filesystem, file management", "[gcs]") {
REQUIRE(is_empty);

// Continue building the hierarchy
bool is_object;
bool is_object = false;
REQUIRE(gcs_.touch(URI(file1)).ok());
REQUIRE(gcs_.is_object(URI(file1), &is_object).ok());
REQUIRE(is_object);
Expand Down Expand Up @@ -289,7 +289,7 @@ TEST_CASE_METHOD(
gcs_.write(URI(smallfile), write_buffer_small, buffer_size_small).ok());

// Before flushing, the files do not exist
bool is_object;
bool is_object = false;
REQUIRE(gcs_.is_object(URI(largefile), &is_object).ok());
REQUIRE(!is_object);
REQUIRE(gcs_.is_object(URI(smallfile), &is_object).ok());
Expand All @@ -314,7 +314,7 @@ TEST_CASE_METHOD(

// Read from the beginning
auto read_buffer = new char[26];
uint64_t bytes_read;
uint64_t bytes_read = 0;
REQUIRE(gcs_.read(URI(largefile), 0, read_buffer, 26, 0, &bytes_read).ok());
CHECK(26 == bytes_read);
bool allok = true;
Expand Down Expand Up @@ -377,7 +377,7 @@ TEST_CASE_METHOD(
gcs_.write(URI(smallfile), write_buffer_small, buffer_size_small).ok());

// Before flushing, the file does not exist
bool is_object;
bool is_object = false;
REQUIRE(gcs_.is_object(URI(smallfile), &is_object).ok());
REQUIRE(!is_object);

Expand All @@ -395,7 +395,7 @@ TEST_CASE_METHOD(

// Read from the beginning
auto read_buffer = new char[26];
uint64_t bytes_read;
uint64_t bytes_read = 0;
REQUIRE(gcs_.read(URI(smallfile), 0, read_buffer, 26, 0, &bytes_read).ok());
CHECK(26 == bytes_read);
bool allok = true;
Expand Down Expand Up @@ -458,7 +458,7 @@ TEST_CASE_METHOD(
gcs_.write(URI(smallfile), write_buffer_small, buffer_size_small).ok());

// Before flushing, the files do not exist
bool is_object;
bool is_object = false;
REQUIRE(gcs_.is_object(URI(largefile), &is_object).ok());
REQUIRE(!is_object);
REQUIRE(gcs_.is_object(URI(smallfile), &is_object).ok());
Expand All @@ -483,7 +483,7 @@ TEST_CASE_METHOD(

// Read from the beginning
auto read_buffer = new char[26];
uint64_t bytes_read;
uint64_t bytes_read = 0;
REQUIRE(gcs_.read(URI(largefile), 0, read_buffer, 26, 0, &bytes_read).ok());
CHECK(26 == bytes_read);
bool allok = true;
Expand Down Expand Up @@ -546,7 +546,7 @@ TEST_CASE_METHOD(
gcs_.write(URI(smallfile), write_buffer_small, buffer_size_small).ok());

// Before flushing, the file does not exist
bool is_object;
bool is_object = false;
REQUIRE(gcs_.is_object(URI(smallfile), &is_object).ok());
REQUIRE(!is_object);

Expand All @@ -564,7 +564,7 @@ TEST_CASE_METHOD(

// Read from the beginning
auto read_buffer = new char[26];
uint64_t bytes_read;
uint64_t bytes_read = 0;
REQUIRE(gcs_.read(URI(smallfile), 0, read_buffer, 26, 0, &bytes_read).ok());
CHECK(26 == bytes_read);
bool allok = true;
Expand Down Expand Up @@ -619,7 +619,7 @@ TEST_CASE_METHOD(
gcs_.write(URI(largefile), write_buffer_large, buffer_size_large).ok());

// Before flushing, the file does not exist
bool is_object;
bool is_object = false;
REQUIRE(gcs_.is_object(URI(largefile), &is_object).ok());
REQUIRE(!is_object);

Expand All @@ -637,7 +637,7 @@ TEST_CASE_METHOD(

// Read from the beginning
auto read_buffer = new char[26];
uint64_t bytes_read;
uint64_t bytes_read = 0;
REQUIRE(gcs_.read(URI(largefile), 0, read_buffer, 26, 0, &bytes_read).ok());
CHECK(26 == bytes_read);
bool allok = true;
Expand Down
22 changes: 11 additions & 11 deletions test/src/unit-gs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ TEST_CASE_METHOD(GSFx, "Test GS filesystem, file management", "[gs]") {
REQUIRE(is_empty);

// Continue building the hierarchy
bool is_object;
bool is_object = false;
REQUIRE(gcs_.touch(URI(file1)).ok());
REQUIRE(gcs_.is_object(URI(file1), &is_object).ok());
REQUIRE(is_object);
Expand Down Expand Up @@ -257,7 +257,7 @@ TEST_CASE_METHOD(
gcs_.write(URI(smallfile), write_buffer_small, buffer_size_small).ok());

// Before flushing, the files do not exist
bool is_object;
bool is_object = false;
REQUIRE(gcs_.is_object(URI(largefile), &is_object).ok());
REQUIRE(!is_object);
REQUIRE(gcs_.is_object(URI(smallfile), &is_object).ok());
Expand All @@ -282,7 +282,7 @@ TEST_CASE_METHOD(

// Read from the beginning
auto read_buffer = new char[26];
uint64_t bytes_read;
uint64_t bytes_read = 0;
REQUIRE(gcs_.read(URI(largefile), 0, read_buffer, 26, 0, &bytes_read).ok());
CHECK(26 == bytes_read);
bool allok = true;
Expand Down Expand Up @@ -345,7 +345,7 @@ TEST_CASE_METHOD(
gcs_.write(URI(smallfile), write_buffer_small, buffer_size_small).ok());

// Before flushing, the file does not exist
bool is_object;
bool is_object = false;
REQUIRE(gcs_.is_object(URI(smallfile), &is_object).ok());
REQUIRE(!is_object);

Expand All @@ -363,7 +363,7 @@ TEST_CASE_METHOD(

// Read from the beginning
auto read_buffer = new char[26];
uint64_t bytes_read;
uint64_t bytes_read = 0;
REQUIRE(gcs_.read(URI(smallfile), 0, read_buffer, 26, 0, &bytes_read).ok());
CHECK(26 == bytes_read);
bool allok = true;
Expand Down Expand Up @@ -426,7 +426,7 @@ TEST_CASE_METHOD(
gcs_.write(URI(smallfile), write_buffer_small, buffer_size_small).ok());

// Before flushing, the files do not exist
bool is_object;
bool is_object = false;
REQUIRE(gcs_.is_object(URI(largefile), &is_object).ok());
REQUIRE(!is_object);
REQUIRE(gcs_.is_object(URI(smallfile), &is_object).ok());
Expand All @@ -451,7 +451,7 @@ TEST_CASE_METHOD(

// Read from the beginning
auto read_buffer = new char[26];
uint64_t bytes_read;
uint64_t bytes_read = 0;
REQUIRE(gcs_.read(URI(largefile), 0, read_buffer, 26, 0, &bytes_read).ok());
CHECK(26 == bytes_read);
bool allok = true;
Expand Down Expand Up @@ -514,7 +514,7 @@ TEST_CASE_METHOD(
gcs_.write(URI(smallfile), write_buffer_small, buffer_size_small).ok());

// Before flushing, the file does not exist
bool is_object;
bool is_object = false;
REQUIRE(gcs_.is_object(URI(smallfile), &is_object).ok());
REQUIRE(!is_object);

Expand All @@ -532,7 +532,7 @@ TEST_CASE_METHOD(

// Read from the beginning
auto read_buffer = new char[26];
uint64_t bytes_read;
uint64_t bytes_read = 0;
REQUIRE(gcs_.read(URI(smallfile), 0, read_buffer, 26, 0, &bytes_read).ok());
CHECK(26 == bytes_read);
bool allok = true;
Expand Down Expand Up @@ -587,7 +587,7 @@ TEST_CASE_METHOD(
gcs_.write(URI(largefile), write_buffer_large, buffer_size_large).ok());

// Before flushing, the file does not exist
bool is_object;
bool is_object = false;
REQUIRE(gcs_.is_object(URI(largefile), &is_object).ok());
REQUIRE(!is_object);

Expand All @@ -605,7 +605,7 @@ TEST_CASE_METHOD(

// Read from the beginning
auto read_buffer = new char[26];
uint64_t bytes_read;
uint64_t bytes_read = 0;
REQUIRE(gcs_.read(URI(largefile), 0, read_buffer, 26, 0, &bytes_read).ok());
CHECK(26 == bytes_read);
bool allok = true;
Expand Down

0 comments on commit 33e16bb

Please sign in to comment.