Sean Silva
5db6213c29
Add a small "usage:" comment at the top of not.cpp
...
Mostly pulled from Rafael's r185678 commit message.
llvm-svn: 222855
2014-11-26 22:53:46 +00:00
Michael J. Spencer
17a3ab5413
Use findProgramByName.
...
llvm-svn: 221221
2014-11-04 01:29:59 +00:00
Reid Kleckner
dd4c4cbf14
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
4355be35c6
[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
b00824c629
[C++11] Use 'nullptr'.
...
llvm-svn: 210442
2014-06-08 22:29:17 +00:00
Rafael Espindola
b633c050ce
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
ef0d0d8b0b
Avoid using PathV1.h in Program.h.
...
llvm-svn: 183940
2013-06-13 20:25:38 +00:00
Rafael Espindola
332b3ad6f7
Have sys::FindProgramByName return a std::string.
...
llvm-svn: 183928
2013-06-13 19:25:37 +00:00
Rafael Espindola
5b921b1aa1
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
d5ec932c3a
Merge System into Support.
...
llvm-svn: 120298
2010-11-29 18:16:10 +00:00
Dan Gohman
adc29a454a
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
15437d0bd2
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