This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PATCH: dg-require-{fork,mkfifo} for V3 testsuite
Mark Mitchell wrote:
> Right. I think that that the stuff I just added shows how to compile
> something -- but running stuff is a little harder. You should be able
> to use the DejaGNU remote stuff, though; something like:
>
> set output [remote_exec target "test_locales"]
>
> will do what you want.
Thanks!
> 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?
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?
Thanks a lot in advance,
Paolo.