Michael J. Spencer
f9074b5a91
Use findProgramByName.
...
llvm-svn: 221221
2014-11-04 01:29:59 +00:00
Reid Kleckner
4377656e12
not: Only consider exit code 3 to be a crash with --crash
...
This fixes Clang's test/Index/comment-xml-schema.c with Cygwin's
xmllint.exe, which uses exit(3) for XML validation failure.
llvm-svn: 211550
2014-06-23 22:54:33 +00:00
NAKAMURA Takumi
a2e405cb35
[Win32] Let utils/not aware of abort(), aka llvm_unreachable(), in msvcrt.
...
It has exit code as 3. abort(), aka unreachable, may be handled as crash.
FIXME: Could we move this into Win32/Program.inc?
llvm-svn: 210895
2014-06-13 12:23:56 +00:00
Craig Topper
66f09ad041
[C++11] Use 'nullptr'.
...
llvm-svn: 210442
2014-06-08 22:29:17 +00:00
Rafael Espindola
91487584c9
Add a --crash option to not.
...
Now the two possible uses of not are
* not cmd
Will return true if cmd doesn't crash and returns false.
* not --crash cmd
Will return true if cmd crashes.
It will be used/tested in a followup commit for the clang crash recovery
testing.
llvm-svn: 185678
2013-07-05 02:50:03 +00:00
Rafael Espindola
7c1023ad27
Avoid using PathV1.h in Program.h.
...
llvm-svn: 183940
2013-06-13 20:25:38 +00:00
Rafael Espindola
4c7ad8fc27
Have sys::FindProgramByName return a std::string.
...
llvm-svn: 183928
2013-06-13 19:25:37 +00:00
Rafael Espindola
cb2eca0f91
Remove the program class.
...
It was only used to implement ExecuteAndWait and ExecuteNoWait. Expose just
those two functions and make Execute and Wait implementations details.
llvm-svn: 183864
2013-06-12 20:58:35 +00:00
Michael J. Spencer
447762da85
Merge System into Support.
...
llvm-svn: 120298
2010-11-29 18:16:10 +00:00
Dan Gohman
b75ce4f816
not is testing for a normal exit with a non-zero value. It shouldn't
...
return success if the child process is killed with a signal.
llvm-svn: 117701
2010-10-29 20:20:29 +00:00
Daniel Dunbar
00dd448cff
Add count/not tools as executables.
...
- Apparently, I'm willing to do incredibly stupid things in the name of portability.
llvm-svn: 82685
2009-09-24 06:23:57 +00:00