• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Gallopsled / pwntools / 1

28 Jan 2022 10:58AM UTC coverage: 0.0% (-73.8%) from 73.823%
1

push

github

web-flow
Fix CI after Groovy Gorilla went away for libc unstrip test (#2025)

* Fix CI after Groovy Gorilla went away for libc unstrip test

Build elfutils 0.181 from source since we can't use builds
from a newer ubuntu version anymore.

* Install python wheels in CI

0 of 1 new or added line in 1 file covered. (0.0%)

13713 existing lines in 142 files now uncovered.

0 of 16559 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/pwnlib/commandline/errno.py
UNCOV
1
from __future__ import absolute_import, print_function
×
2

UNCOV
3
import argparse
×
UNCOV
4
import os
×
UNCOV
5
import errno
×
6

UNCOV
7
from pwnlib.commandline import common
×
8

UNCOV
9
parser = common.parser_commands.add_parser(
×
10
    'errno',
11
    help = 'Prints out error messages',
12
    description = 'Prints out error messages'
13
)
14

UNCOV
15
parser.add_argument(
×
16
    'error', help='Error message or value', type=str
17
)
18

UNCOV
19
def main(args):
×
UNCOV
20
  try:
×
UNCOV
21
    value = int(args.error, 0)
×
22

UNCOV
23
    if value < 0:
×
UNCOV
24
      value = -value
×
25

UNCOV
26
    if 0x100000000 - value < 0x200:
×
27
      value = 0x100000000 - value
×
28

UNCOV
29
    if value not in errno.errorcode:
×
30
      print("No errno for %s" % value)
×
31
      return
×
32

UNCOV
33
    name = errno.errorcode[value]
×
34

UNCOV
35
  except ValueError:
×
UNCOV
36
    name = args.error.upper()
×
37

UNCOV
38
    if not hasattr(errno, name):
×
39
      print("No errno for %s" % name)
×
40
      return
×
41

UNCOV
42
    value = getattr(errno, name)
×
43

44

UNCOV
45
  print('#define', name, value)
×
UNCOV
46
  print(os.strerror(value))
×
47

UNCOV
48
if __name__ == '__main__':
×
UNCOV
49
    common.main(__file__)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc