File: numeric-parsing.out

package info (click to toggle)
libvirt 12.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 217,244 kB
  • sloc: ansic: 540,423; xml: 355,215; python: 12,060; perl: 2,626; sh: 2,179; makefile: 448; javascript: 126; cpp: 22
file content (41 lines) | stat: -rw-r--r-- 1,429 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Test a regular numeric option
Non-numeric value
error: Numeric value 'abc' for <start> option is malformed or out of range

Numeric value with invalid suffix
error: Numeric value '42WB' for <start> option is malformed or out of range

Numeric value with valid suffix. Suffixes are not supported for
regular numeric options, so this value is rejected
error: Numeric value '42MB' for <start> option is malformed or out of range

Numeric value bigger than INT_MAX
error: Numeric value '2147483648' for <start> option is malformed or out of range

Negative numeric value. The value is not valid for the command
we are testing, but it has been parsed correctly
error: Invalid value for start CPU

Test a scaled numeric option
Non-numeric value
error: Scaled numeric value 'abc' for <size> option is malformed or out of range

Numeric value with invalid suffix
error: Scaled numeric value '42WB' for <size> option is malformed or out of range
error: invalid argument: unknown suffix 'WB'

Numeric value with valid suffix

Numeric value bigger than INT_MAX. No failure here because
scaled numeric values are unsigned long long

Negative numeric value
error: Scaled numeric value '-1' for <size> option is malformed or out of range

Zero. The value is not valid for the command were testing, but
it has been parsed correctly
error: Unable to change MaxMemorySize
error: memory in virDomainSetMemoryFlags must not be zero

Numeric value