From 94d95497149155577d033e7f4266dae4da69f527 Mon Sep 17 00:00:00 2001 From: Oz Date: Sun, 22 Oct 2023 19:04:31 +0200 Subject: [PATCH] [Test] Fix build of test app on MSVC 2015 --- tests/src/test_formatdetect.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/src/test_formatdetect.cpp b/tests/src/test_formatdetect.cpp index 0ce4b196..4e59009e 100644 --- a/tests/src/test_formatdetect.cpp +++ b/tests/src/test_formatdetect.cpp @@ -265,7 +265,9 @@ TEST_CASE( "formatdetect: Format detection of archive with a wrong extension (Is const Bit7zLibrary lib{ test::sevenzip_lib_path() }; - auto testFile = GENERATE( BIT7Z_STRING( "wrong_extension.rar" ), BIT7Z_STRING( "wrong_extension.bz2" ) ); + auto testFile = GENERATE( as< tstring >(), + BIT7Z_STRING( "wrong_extension.rar" ), + BIT7Z_STRING( "wrong_extension.bz2" ) ); DYNAMIC_SECTION( "Reading file with a wrong extension: " << Catch::StringMaker< tstring >::convert( testFile ) ) { // From file