Skip to content

Commit 3739d6b

Browse files
committed
open_for_writing will not return 1, because 1 is stdout
1 parent 153f73a commit 3739d6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/t/io/test_bzip2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ TEST_CASE("Write bzip2-compressed file with implicit close") {
139139

140140
const std::string output_file = "test_gzip_out.txt.bz2";
141141
const int fd = osmium::io::detail::open_for_writing(output_file, osmium::io::overwrite::allow);
142-
REQUIRE(fd > 0);
142+
REQUIRE(fd > 1);
143143

144144
{
145145
osmium::io::Bzip2Compressor comp{fd, osmium::io::fsync::yes};

0 commit comments

Comments
 (0)