tests: don't use errno in output
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
10bba184bb
commit
288acb4eee
|
@ -153,7 +153,7 @@ int main(int argc, char *argv[])
|
|||
rc = fdisk_add_partition(cxt, pa, NULL);
|
||||
if (rc) {
|
||||
errno = -rc;
|
||||
err(EXIT_FAILURE, "failed to add #%d partition", partno);
|
||||
errx(EXIT_FAILURE, "failed to add #%d partition", partno);
|
||||
}
|
||||
|
||||
fdisk_reset_partition(pa);
|
||||
|
|
|
@ -170,7 +170,7 @@ int main(int argc, char *argv[])
|
|||
rc = fdisk_add_partition(cxt, pa, NULL);
|
||||
if (rc) {
|
||||
errno = -rc;
|
||||
err(EXIT_FAILURE, "failed to add #%d partition", n + 1);
|
||||
errx(EXIT_FAILURE, "failed to add #%d partition", n + 1);
|
||||
}
|
||||
|
||||
fdisk_reset_partition(pa);
|
||||
|
|
|
@ -7,7 +7,7 @@ Created a new <removed>.
|
|||
Created a new <removed>.
|
||||
Created a new <removed>.
|
||||
Sector 5000 already used.
|
||||
sample-fdisk-mkpart-fullspec: failed to add #4 partition: Numerical result out of range
|
||||
sample-fdisk-mkpart-fullspec: failed to add #4 partition
|
||||
Disk <removed>: 15 MiB, 15728640 bytes, 30720 sectors
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
|
|
|
@ -4,7 +4,7 @@ Requested partition: <partno=2,start=6144,size=2048>
|
|||
Requested partition: <partno=3,start=8192,size=22528>
|
||||
Requested partition: <partno=4,start=10240,size=2048>
|
||||
Requested partition: <partno=5,start=4096,size=2048>
|
||||
sample-fdisk-mkpart-fullspec: failed to add #6 partition: Invalid argument
|
||||
sample-fdisk-mkpart-fullspec: failed to add #6 partition
|
||||
Created a new <removed>.
|
||||
Created a new <removed>.
|
||||
Created a new <removed>.
|
||||
|
|
|
@ -5,7 +5,7 @@ Created a new <removed>.
|
|||
Created a new <removed>.
|
||||
Created a new <removed>.
|
||||
Start sector 4096 out of range.
|
||||
sample-fdisk-mkpart-fullspec: failed to add #3 partition: Numerical result out of range
|
||||
sample-fdisk-mkpart-fullspec: failed to add #3 partition
|
||||
Disk <removed>: 15 MiB, 15728640 bytes, 30720 sectors
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
|
|
|
@ -5,7 +5,7 @@ Created a new <removed>.
|
|||
Created a new <removed>.
|
||||
Created a new <removed>.
|
||||
Extended partition does not exists. Failed to add logical partition.
|
||||
sample-fdisk-mkpart-fullspec: failed to add #7 partition: Invalid argument
|
||||
sample-fdisk-mkpart-fullspec: failed to add #7 partition
|
||||
Disk <removed>: 15 MiB, 15728640 bytes, 30720 sectors
|
||||
Units: sectors of 1 * 512 = 512 bytes
|
||||
Sector size (logical/physical): 512 bytes / 512 bytes
|
||||
|
|
Loading…
Reference in New Issue