Skip to content

Commit

Permalink
[Test] Add BitException tests on Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
rikyoz committed Oct 16, 2023
1 parent 8d9e95f commit 4e6a284
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/test_bitexception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/

#if !defined(__GNUC__) || __GNUC__ >= 5
#if !defined(__GNUC__) || __GNUC__ >= 5 || defined( __clang__ )

#include <catch2/catch.hpp>

Expand Down Expand Up @@ -253,7 +253,7 @@ TEST_CASE( "BitException: Checking if failed files are moved to the exception co
REQUIRE( exceptionFailedFiles.size() == 1 );
REQUIRE( exceptionFailedFiles[ 0 ].first == BIT7Z_STRING( "hello.txt" ) );
REQUIRE( exceptionFailedFiles[ 0 ].second == std::errc::bad_file_descriptor );
// Note: BitException should have cleared failedFiles, so it is again usable!
// Note: BitException should have cleared failedFiles, so it is again usable.
REQUIRE( failedFiles.empty() ); // NOLINT(bugprone-use-after-move) //-V1030
}

Expand Down

0 comments on commit 4e6a284

Please sign in to comment.