Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--gtest_output flag doesn't produce output on platforms where argv[0] is empty #53

Open
GoogleCodeExporter opened this issue Jul 31, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

From user's email:

I'm evaluating Google Test on VXWorks with the Wind River compiler.
The source code runs on a special control device with a motorolla
platform, without
any shell to visualize standard out.

So I try to write out a xml file with the right flag --gtest_output.
But nothing happens. Gtest don't want write any file.

I find out, that argv[0] in the main function is empty.
On Windows XP, there is the program name / path.


Original issue reported on code.google.com by vladlosev on 22 Oct 2008 at 6:15

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 2 Dec 2008 at 5:00

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

If you want to work this.

You should use this solution

char *option[] = { "test.exe", //it doesn't have meaning, just dummy
                   "--gtest_output=xml:filename" };
int argc = 2;

InitGoogleTest( &argc, option );


Original comment by [email protected] on 13 Apr 2009 at 5:08

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 27 Sep 2010 at 7:09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant