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.
#include <sys/syscall.h>
#include <unistd.h>
#include <linux/openat2.h>
+#include <sstream>
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());
}
}
{
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