From cb5b5a250f4d414481573d43e27ac7207ac00c3e Mon Sep 17 00:00:00 2001 From: Klemens Morgenstern Date: Mon, 26 Jun 2023 09:22:54 +0800 Subject: [PATCH] added empty env var check to tests. --- test/v2/environment.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/v2/environment.cpp b/test/v2/environment.cpp index 47f6390f4..71dc5f3d8 100644 --- a/test/v2/environment.cpp +++ b/test/v2/environment.cpp @@ -62,7 +62,8 @@ BOOST_AUTO_TEST_CASE(environment) ec.clear(); for (auto && ke : bpe::current()) - BOOST_CHECK_EQUAL(bpe::get(std::get<0>(ke)), std::get<1>(ke)); + if (!std::get<1>(ke).empty()) + BOOST_CHECK_EQUAL(bpe::get(std::get<0>(ke)), std::get<1>(ke)); #if defined(BOOST_PROCESS_V2_POSIX)