From: Paul Floyd Date: Sun, 26 Oct 2025 19:41:38 +0000 (+0100) Subject: regtest: update none/tests/linux/bug506910.cpp to add errno value X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f53d33c8db509010156db77aabfaf052d02765f6;p=thirdparty%2Fvalgrind.git regtest: update none/tests/linux/bug506910.cpp to add errno value This test recently had a couple of failures. Don't know why, but know that errno wasn't the expected ELOOP. This change adds the value of errno. --- diff --git a/none/tests/linux/bug506910.cpp b/none/tests/linux/bug506910.cpp index 2dbadf56a..fb0fac13a 100644 --- a/none/tests/linux/bug506910.cpp +++ b/none/tests/linux/bug506910.cpp @@ -8,6 +8,7 @@ #include #include #include +#include int main(int argc, char** argv) { @@ -24,7 +25,9 @@ int main(int argc, char** argv) { if (errno != ELOOP) { - throw std::runtime_error("errno should be ELOOP"); + std::stringstream ss; + ss << "errno should be ELOOP (value is " << errno << ')'; + throw std::runtime_error(ss.str()); } } @@ -37,7 +40,9 @@ int main(int argc, char** argv) { if (errno != ELOOP) { - throw std::runtime_error("errno should be ELOOP"); + std::stringstream ss; + ss << "errno should be ELOOP (value is " << errno << ')'; + throw std::runtime_error(ss.str()); } } #endif