Fix tests for stat rdev

If HAVE_STRUCT_STAT_ST_RDEV is not set, rdev will be -1. %d only matches
a natural number, we should let it match negative numbers too.
This commit is contained in:
Niels Dossche 2023-07-10 21:58:22 +02:00
parent 41a3573fcc
commit 6b87e08b82
3 changed files with 10 additions and 10 deletions

View File

@ -88,7 +88,7 @@ array(26) {
["gid"]=>
int(%d)
["rdev"]=>
int(%d)
int(%i)
["size"]=>
int(%d)
["atime"]=>
@ -144,7 +144,7 @@ array(26) {
["gid"]=>
int(%d)
["rdev"]=>
int(%d)
int(%i)
["size"]=>
int(%d)
["atime"]=>

View File

@ -89,7 +89,7 @@ array(26) {
["gid"]=>
int(%d)
["rdev"]=>
int(%d)
int(%i)
["size"]=>
int(%d)
["atime"]=>
@ -143,7 +143,7 @@ array(26) {
["gid"]=>
int(%d)
["rdev"]=>
int(%d)
int(%i)
["size"]=>
int(%d)
["atime"]=>
@ -199,7 +199,7 @@ array(26) {
["gid"]=>
int(%d)
["rdev"]=>
int(%d)
int(%i)
["size"]=>
int(%d)
["atime"]=>
@ -253,7 +253,7 @@ array(26) {
["gid"]=>
int(%d)
["rdev"]=>
int(%d)
int(%i)
["size"]=>
int(%d)
["atime"]=>

View File

@ -98,7 +98,7 @@ array(26) {
["gid"]=>
int(%d)
["rdev"]=>
int(%d)
int(%i)
["size"]=>
int(%d)
["atime"]=>
@ -154,7 +154,7 @@ array(26) {
["gid"]=>
int(%d)
["rdev"]=>
int(%d)
int(%i)
["size"]=>
int(%d)
["atime"]=>
@ -208,7 +208,7 @@ array(26) {
["gid"]=>
int(%d)
["rdev"]=>
int(%d)
int(%i)
["size"]=>
int(%d)
["atime"]=>
@ -262,7 +262,7 @@ array(26) {
["gid"]=>
int(%d)
["rdev"]=>
int(%d)
int(%i)
["size"]=>
int(%d)
["atime"]=>