Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Introduce PSUTIL_TESTING env varpsutil-testing-envvar | Giampaolo Rodola | 2017-05-17 | 11 | -40/+97 |
| | | | | | | | | ...so that we can make stricter assertions in C and py code during tests only. * define a C function in _common.c which returns whether the var is set * set PSUTIL_TESTING from the Makefile | ||||
* | skip signal.CTRL_ test on py 2.6 | Giampaolo Rodola | 2017-05-17 | 1 | -1/+1 |
| | |||||
* | add Popen test for making sure NSP is raised on kill() and terminate() | Giampaolo Rodola | 2017-05-17 | 1 | -9/+24 |
| | |||||
* | move psutil.Popen tests in their own class | Giampaolo Rodola | 2017-05-17 | 1 | -29/+41 |
| | |||||
* | reap_children(): enforce checks to make sure the process is gone | Giampaolo Rodola | 2017-05-17 | 1 | -3/+4 |
| | |||||
* | Merge branch 'master' of https://github.com/giampaolo/psutil | Giampaolo Rodola | 2017-05-17 | 3 | -42/+82 |
|\ | |||||
| * | test utils refactoring | Giampaolo Rodola | 2017-05-17 | 1 | -5/+16 |
| | | |||||
| * | test utils refactoring | Giampaolo Rodola | 2017-05-17 | 2 | -40/+39 |
| | | |||||
| * | revert appveyor.yml | Giampaolo Rodola | 2017-05-17 | 1 | -10/+10 |
| | | |||||
| * | pass cwd and env to get_test_subprocess; reason: try to figure this out ↵ | Giampaolo Rodola | 2017-05-17 | 2 | -1/+3 |
| | | | | | | | | https://travis-ci.org/giampaolo/psutil/jobs/233019876 | ||||
| * | appveyor: try smarter filtering | Giampaolo Rodola | 2017-05-17 | 1 | -10/+9 |
| | | |||||
| * | fix appveyor | Giampaolo Rodola | 2017-05-17 | 1 | -1/+1 |
| | | |||||
| * | smarter appveyor commit files filtering | Giampaolo Rodola | 2017-05-17 | 2 | -1/+1 |
| | | |||||
| * | Ignore arcane safe_rmpath error on APPVEYOR. | Giampaolo Rodola | 2017-05-17 | 2 | -1/+30 |
| | | | | | | | | | | | | | | | | See: https://ci.appveyor.com/project/giampaolo/psutil/build/job/jiq2cgd6stsbtn60 This is weird, and I'm afraid it means wait_procs() on Win may be broken (because of STILL_ACTIVE?). Add signalers in reap_children() that may help figure out whether this is the case. | ||||
* | | Merge branch 'master' of https://github.com/giampaolo/psutil | Giampaolo Rodola | 2017-05-17 | 5 | -23/+41 |
|\ \ | |/ | |||||
| * | Try to fix arcan appveyor err: | Giampaolo Rodola | 2017-05-17 | 1 | -1/+1 |
| | | | | | | | | - https://ci.appveyor.com/project/giampaolo/psutil/build/1240/job/91n29tt3es7os2ut | ||||
| * | fix supports_ipv6 test | Giampaolo Rodola | 2017-05-16 | 1 | -3/+7 |
| | | |||||
| * | fix supports_ipv6 test | Giampaolo Rodola | 2017-05-16 | 1 | -0/+6 |
| | | |||||
| * | #1076: fix UPDv4 address | Giampaolo Rodola | 2017-05-16 | 1 | -1/+1 |
| | | |||||
| * | define a new HAS_CONNECTIONS_UNIX constant | Giampaolo Rodola | 2017-05-16 | 3 | -4/+9 |
| | | |||||
| * | Some fixes to IPv6 testing. (#1076) | Gleb Smirnoff | 2017-05-16 | 1 | -17/+20 |
| | | | | | | | | | | | | * Make test_multi_sockets_filtering not fail if kernel doesn't support IPv6. * Fix test_udp_v6 to actually test IPv6. | ||||
* | | fix win C warnings | Giampaolo Rodola | 2017-05-16 | 3 | -11/+13 |
|/ | |||||
* | win: refactor net_if_addrs C code | Giampaolo Rodola | 2017-05-16 | 1 | -15/+17 |
| | |||||
* | refactor C win code | Giampaolo Rodola | 2017-05-16 | 1 | -7/+5 |
| | |||||
* | #1075 / win / net_if_addrs(): inet_ntop() return value isn't checked | Giampaolo Rodola | 2017-05-16 | 3 | -13/+24 |
| | |||||
* | win: fix C compiler warning | Giampaolo Rodola | 2017-05-16 | 1 | -1/+1 |
| | |||||
* | win: fix C compiler warning | Giampaolo Rodola | 2017-05-16 | 1 | -1/+1 |
| | |||||
* | win: fix C compiler warning | Giampaolo Rodola | 2017-05-16 | 1 | -4/+9 |
| | |||||
* | win: fix C compiler warning | Giampaolo Rodola | 2017-05-16 | 1 | -1/+1 |
| | |||||
* | win: fix C compiler warning | Giampaolo Rodola | 2017-05-16 | 1 | -1/+1 |
| | |||||
* | speed up multi socks tests by waiting for multiple test files in parallel | Giampaolo Rodola | 2017-05-16 | 1 | -9/+17 |
| | |||||
* | prevent AccessDenied on OSX | Giampaolo Rodola | 2017-05-16 | 1 | -2/+3 |
| | |||||
* | add extra assert | Giampaolo Rodola | 2017-05-16 | 2 | -1/+2 |
| | |||||
* | fix #1074: [FreeBSD] sensors_battery() raises OSError in case of no battery. | Giampaolo Rodola | 2017-05-16 | 4 | -2/+25 |
| | |||||
* | declare PSUTIL_CONN_NONE as a static shared constant | Giampaolo Rodola | 2017-05-16 | 8 | -19/+3 |
| | |||||
* | Freebsd socks refactoring (#1073) | Giampaolo Rodola | 2017-05-16 | 6 | -345/+380 |
| | | | | | | | | * freebsd: split socks.c into 2 separate files * remove unused h files * freebsd: split socks.c into 2 separate files | ||||
* | BSD: mv arch C files (#1072) | Giampaolo Rodola | 2017-05-16 | 12 | -14/+12 |
| | | | | | | | | | | * move freebsd C arch files * rename C file * move openbsd C arch files * move netbsd C arch files | ||||
* | ignore me | Giampaolo Rodola | 2017-05-16 | 1 | -1/+1 |
| | |||||
* | style | Giampaolo Rodola | 2017-05-16 | 1 | -2/+9 |
| | |||||
* | give CREDITS to @glebius | Giampaolo Rodola | 2017-05-16 | 2 | -0/+4 |
| | |||||
* | Merge branch 'master' of github.com:giampaolo/psutil | Giampaolo Rodola | 2017-05-16 | 1 | -13/+6 |
|\ | |||||
| * | Fix socket to PID translation on FreeBSD. (#1070) | Gleb Smirnoff | 2017-05-16 | 1 | -13/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This file was derived from FreeBSD usr.bin/sockstat/sockstat.c. The logic of socket to PID translation was copied incorrectly. The hash, that sockstat(1) utility has, is completely internal feature, it isn't part of FreeBSD API, it is just to speed things up. So, to use this hash one actually needs to create it: declare array of buckets, populate it with sockets. In the freebsd_socks.c this wasn't done. This fix doesn't create the hash, instead it removes remnants of hashing that was there in sockstat.c. It makes code more simple, but of course slower than original sockstat(1) in case if machine is running zillions of sockets. I decided to go this way simply because I am low on time to invest into psutil, and also because better first provide correct and simple implementation and then improve it, rather than jump for complexity. | ||||
* | | write more tests for connections() filtering | Giampaolo Rodola | 2017-05-16 | 1 | -1/+33 |
|/ | |||||
* | add another test case which exposes #1013 | Giampaolo Rodola | 2017-05-16 | 1 | -0/+30 |
| | |||||
* | small refactoring | Giampaolo Rodola | 2017-05-16 | 1 | -3/+3 |
| | |||||
* | add test case which exposes #1013 | Giampaolo Rodola | 2017-05-15 | 1 | -0/+7 |
| | |||||
* | add connections tests | Giampaolo Rodola | 2017-05-15 | 2 | -10/+39 |
| | |||||
* | fix #1069 / freebsd: cpu_num() may return 255; now returns -1 | Giampaolo Rodola | 2017-05-14 | 4 | -4/+10 |
| | |||||
* | fix #1042: psutil won't compile on FreeBSD 12; applied patch by @glebius | Giampaolo Rodola | 2017-05-14 | 3 | -0/+36 |
| | |||||
* | fix appveyor build | Giampaolo Rodola | 2017-05-13 | 1 | -1/+1 |
| |