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

cxxtestgen does not warn when a file in "--headers" is missing #129

Open
mambu opened this issue Jun 17, 2016 · 1 comment
Open

cxxtestgen does not warn when a file in "--headers" is missing #129

mambu opened this issue Jun 17, 2016 · 1 comment

Comments

@mambu
Copy link

mambu commented Jun 17, 2016

Using CxxTest Version 4.3 (2013-07-05)
Running
cxxtestgen --runner=XUnitPrinter --xunit-file=cxxtest.xml --headers=tests -w mytests --have-eh -o TestRunner.cc
with a list of files that are not present in the filesystem listed in file "tests" does not produce an error.
The exit code is 0.

Would it be possible to print something to stdout with a warning or an error saying which files are missing and return a code different than 0?

@dannyp11
Copy link

danny:$ cxxtestgen --runner=XUnitPrinter --xunit-file=cxxtest.xml --headers=tests -w mytests --have-eh -o TestRunner.cc
ERROR: the file 'tests' does not exist!
danny:
$ echo $?
2

Here's result in 4.4. I think it's doing what you want. Or am I missing something?

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

No branches or pull requests

2 participants