Remove redundant ETL_USING_STL in tests (#1559)

This commit is contained in:
Roland Reichwein 2026-08-20 16:47:17 +02:00 committed by GitHub
parent e34ba686ba
commit e2a9f2b10f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
18 changed files with 29 additions and 78 deletions

View File

@ -32,20 +32,16 @@ SOFTWARE.
#include "etl/base64_decoder.h"
#include "etl/integral_limits.h"
#include "etl/string.h"
#include "etl/vector.h"
#include <algorithm>
#include <array>
#include <iterator>
#include <string>
#include <vector>
#if ETL_USING_STL
#include <iterator>
#endif
#include "etl/integral_limits.h"
//*****************************************************************************
// Encode/decode using RFC-2152
//*****************************************************************************

View File

@ -30,20 +30,16 @@ SOFTWARE.
#include "etl/base64_encoder.h"
#include "etl/integral_limits.h"
#include "etl/string.h"
#include "etl/vector.h"
#include <algorithm>
#include <array>
#include <iterator>
#include <string>
#include <vector>
#if ETL_USING_STL
#include <iterator>
#endif
#include "etl/integral_limits.h"
//*****************************************************************************
// Encode/decode using RFC-2152 with no padding
// Using minimum buffer size, with callback.

View File

@ -30,20 +30,16 @@ SOFTWARE.
#include "etl/base64_decoder.h"
#include "etl/integral_limits.h"
#include "etl/string.h"
#include "etl/vector.h"
#include <algorithm>
#include <array>
#include <iterator>
#include <string>
#include <vector>
#if ETL_USING_STL
#include <iterator>
#endif
#include "etl/integral_limits.h"
//*****************************************************************************
// Encode/decode using RFC-3501
//*****************************************************************************

View File

@ -30,20 +30,16 @@ SOFTWARE.
#include "etl/base64_encoder.h"
#include "etl/integral_limits.h"
#include "etl/string.h"
#include "etl/vector.h"
#include <algorithm>
#include <array>
#include <iterator>
#include <string>
#include <vector>
#if ETL_USING_STL
#include <iterator>
#endif
#include "etl/integral_limits.h"
//*****************************************************************************
// Encode/decode using RFC-3501 with no padding
// Using minimum buffer size, with callback.

View File

@ -30,20 +30,16 @@ SOFTWARE.
#include "etl/base64_decoder.h"
#include "etl/integral_limits.h"
#include "etl/string.h"
#include "etl/vector.h"
#include <algorithm>
#include <array>
#include <iterator>
#include <string>
#include <vector>
#if ETL_USING_STL
#include <iterator>
#endif
#include "etl/integral_limits.h"
//*****************************************************************************
// Encode/decode using RFC-4648-URL with no padding
//*****************************************************************************

View File

@ -30,20 +30,16 @@ SOFTWARE.
#include "etl/base64_decoder.h"
#include "etl/integral_limits.h"
#include "etl/string.h"
#include "etl/vector.h"
#include <algorithm>
#include <array>
#include <iterator>
#include <string>
#include <vector>
#if ETL_USING_STL
#include <iterator>
#endif
#include "etl/integral_limits.h"
//*****************************************************************************
// Encode/decode using RFC-4648-URL with no padding
//*****************************************************************************

View File

@ -30,20 +30,16 @@ SOFTWARE.
#include "etl/base64_encoder.h"
#include "etl/integral_limits.h"
#include "etl/string.h"
#include "etl/vector.h"
#include <algorithm>
#include <array>
#include <iterator>
#include <string>
#include <vector>
#if ETL_USING_STL
#include <iterator>
#endif
#include "etl/integral_limits.h"
//*****************************************************************************
// Encode/decode using RFC-4648-URL with no padding
// Using minimum buffer size, with callback.

View File

@ -30,20 +30,16 @@ SOFTWARE.
#include "etl/base64_encoder.h"
#include "etl/integral_limits.h"
#include "etl/string.h"
#include "etl/vector.h"
#include <algorithm>
#include <array>
#include <iterator>
#include <string>
#include <vector>
#if ETL_USING_STL
#include <iterator>
#endif
#include "etl/integral_limits.h"
//*****************************************************************************
// Encode/decode using RFC-4648-URL with padding
// Using minimum buffer size, with callback.

View File

@ -30,20 +30,16 @@ SOFTWARE.
#include "etl/base64_decoder.h"
#include "etl/integral_limits.h"
#include "etl/string.h"
#include "etl/vector.h"
#include <algorithm>
#include <array>
#include <iterator>
#include <string>
#include <vector>
#if ETL_USING_STL
#include <iterator>
#endif
#include "etl/integral_limits.h"
//*****************************************************************************
// Encode/decode using RFC-4648 with no padding
//*****************************************************************************

View File

@ -30,20 +30,16 @@ SOFTWARE.
#include "etl/base64_decoder.h"
#include "etl/integral_limits.h"
#include "etl/string.h"
#include "etl/vector.h"
#include <algorithm>
#include <array>
#include <iterator>
#include <string>
#include <vector>
#if ETL_USING_STL
#include <iterator>
#endif
#include "etl/integral_limits.h"
//*****************************************************************************
// Encode/decode using RFC-4648 with no padding
//*****************************************************************************

View File

@ -30,20 +30,16 @@ SOFTWARE.
#include "etl/base64_encoder.h"
#include "etl/integral_limits.h"
#include "etl/string.h"
#include "etl/vector.h"
#include <algorithm>
#include <array>
#include <iterator>
#include <string>
#include <vector>
#if ETL_USING_STL
#include <iterator>
#endif
#include "etl/integral_limits.h"
//*****************************************************************************
// Encode/decode using RFC-4648 with no padding
// Using minimum buffer size, with callback.

View File

@ -30,20 +30,16 @@ SOFTWARE.
#include "etl/base64_encoder.h"
#include "etl/integral_limits.h"
#include "etl/string.h"
#include "etl/vector.h"
#include <algorithm>
#include <array>
#include <iterator>
#include <string>
#include <vector>
#if ETL_USING_STL
#include <iterator>
#endif
#include "etl/integral_limits.h"
//*****************************************************************************
// Encode/decode using RFC-4648 with padding
// Using minimum buffer size, with callback.

View File

@ -67,7 +67,7 @@ namespace
CHECK(data.crbegin() == data.crend());
}
#if ETL_USING_STL
#if ETL_HAS_INITIALIZER_LIST
//*************************************************************************
TEST(test_constructor_from_literal)
{

View File

@ -99,7 +99,7 @@ namespace
CHECK(data.crbegin() == data.crend());
}
#if ETL_USING_STL
#if ETL_HAS_INITIALIZER_LIST
//*************************************************************************
TEST(test_constructor_from_literal)
{

View File

@ -187,7 +187,7 @@ namespace
CHECK_EQUAL(Registry_Size, registry.max_size());
}
#if ETL_USING_STL
#if ETL_HAS_INITIALIZER_LIST
//*************************************************************************
TEST(test_initializer_list_construction)
{

View File

@ -135,7 +135,6 @@ namespace
CHECK_EQUAL(*c, v);
}
#if ETL_USING_STL
//*************************************************************************
TEST(test_midpoint_std_random_access_iterator)
{
@ -163,7 +162,6 @@ namespace
CHECK_EQUAL(*c, v);
}
#endif
//*************************************************************************
TEST(test_lerp_floating_point)

View File

@ -41,7 +41,7 @@ SOFTWARE.
// Issue #1391: include <ranges> when available to verify etl::operator|
// does not conflict with std::ranges::operator|.
#if ETL_USING_STL && ETL_USING_CPP20 && defined(__has_include)
#if ETL_USING_CPP20 && defined(__has_include)
#if __has_include(<ranges>)
#include <ranges>
#endif

View File

@ -759,6 +759,7 @@ namespace
CHECK(etl::is_fundamental<long double>::value == std::is_fundamental<long double>::value);
CHECK(etl::is_fundamental<Test>::value == std::is_fundamental<Test>::value);
#if ETL_USING_STL
// etl::is_fundamental does not report std::nullptr_t as fundamental when not using the STL.
CHECK(etl::is_fundamental<std::nullptr_t>::value == std::is_fundamental<std::nullptr_t>::value);
#endif
}