]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: remove UUIDs with time overflow from uuidparse
authorKarel Zak <kzak@redhat.com>
Tue, 18 Jul 2017 08:01:22 +0000 (10:01 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 18 Jul 2017 08:01:22 +0000 (10:01 +0200)
The time_t used by timeval is "long", it means too small on 32-bits
archs to hold large numbers.

Reported-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/uuid/uuidparse
tests/ts/uuid/uuidparse

index cda67e4a35d35756437ca69dfe99a5979caa38b2..7fc64bcd22dc7308e115d6f43e85fbade7e222d6 100644 (file)
@@ -7,7 +7,6 @@ UUID                                  VARIANT   TYPE       TIME
 00000000-0000-5000-0000-000000000000  NCS       sha1-based 
 00000000-0000-6000-0000-000000000000  NCS       unknown    
 00000000-0000-0000-8000-000000000000  DCE       nil        
-00000000-0000-1000-8000-000000000000  DCE       time-based 60038-03-11 05:36:10,955161+0000
 00000000-0000-2000-8000-000000000000  DCE       DCE        
 00000000-0000-3000-8000-000000000000  DCE       name-based 
 00000000-0000-4000-8000-000000000000  DCE       random     
@@ -28,6 +27,5 @@ UUID                                  VARIANT   TYPE       TIME
 00000000-0000-5000-f000-000000000000  other     sha1-based 
 00000000-0000-6000-f000-000000000000  other     unknown    
 9b274c46-544a-11e7-a972-00037f500001  DCE       time-based 2017-06-18 17:21:46,544647+0000
-ffffffff-ffff-1fff-8fff-ffffffffffff  DCE       time-based 5236-03-31 21:21:00,684697+0000
 invalid-input                         invalid   invalid    invalid
 return value: 0
index 229994f6f913702b11e492b99a3c9a3ed91af63e..2414353f3d52e0c90d2b94cf9ab9f414eea12604 100755 (executable)
@@ -31,7 +31,6 @@ echo '00000000-0000-0000-0000-000000000000
 00000000-0000-6000-0000-000000000000
 
 00000000-0000-0000-8000-000000000000
-00000000-0000-1000-8000-000000000000
 00000000-0000-2000-8000-000000000000
 00000000-0000-3000-8000-000000000000
 00000000-0000-4000-8000-000000000000
@@ -55,7 +54,6 @@ echo '00000000-0000-0000-0000-000000000000
 00000000-0000-6000-f000-000000000000
 
 9b274c46-544a-11e7-a972-00037f500001
-ffffffff-ffff-1fff-8fff-ffffffffffff
 
 invalid-input' | $TS_CMD_UUIDPARSE 1>$TS_OUTPUT 2>&1
 echo "return value: $?" >> $TS_OUTPUT