fix problem with C++ regression tests cool and yacl
now they report errors correctly and don't create strange files "failure"