From f53d33c8db509010156db77aabfaf052d02765f6 Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Sun, 26 Oct 2025 20:41:38 +0100 Subject: [PATCH] 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. --- none/tests/linux/bug506910.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 -- 2.47.3