This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: dg-require-{fork,mkfifo} for V3 testsuite


Paolo Carlini wrote:

 Then, you want to look at the output from the program; you can't
trust the exit code, in general.


Argh! Therefore, since not-installed locale data leads to an exception,
I can simply wrap a set of std::locale(name) in a try/catch, and, either
output << "YES" in the try, or "NO" in the catch. Makes sense?

Yes.


Any hint about the best way to look at the output? Or the idea is
redirecting to a file and then using "string first" (I see that in a
check part of v3-build_support) on it?

I think that $output will just contain the output. So, you don't need to redirect to a file. Then, yes, you can use "string first" on $output.


--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]