projects
/
platform
/
upstream
/
cryptsetup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4de648a
)
Workaround api-test compilation on some very old systems.
author
Milan Broz
<gmazyland@gmail.com>
Tue, 8 Jan 2013 16:41:06 +0000
(17:41 +0100)
committer
Milan Broz
<gmazyland@gmail.com>
Tue, 8 Jan 2013 16:41:06 +0000
(17:41 +0100)
tests/api-test.c
patch
|
blob
|
history
diff --git
a/tests/api-test.c
b/tests/api-test.c
index
747c3cf
..
d54e9a5
100644
(file)
--- a/
tests/api-test.c
+++ b/
tests/api-test.c
@@
-700,7
+700,7
@@
static void AddDevicePlain(void)
EQ_(r_size, size);
// size overlaps
EQ_(r_size, size);
// size overlaps
- FAIL_(crypt_resize(cd, CDEVICE_1,
ULLONG_MAX
),"Backing device is too small");
+ FAIL_(crypt_resize(cd, CDEVICE_1,
(uint64_t)-1
),"Backing device is too small");
FAIL_(crypt_resize(cd, CDEVICE_1, (size>>SECTOR_SHIFT)+1),"crypt device overlaps backing device");
// resize ok
FAIL_(crypt_resize(cd, CDEVICE_1, (size>>SECTOR_SHIFT)+1),"crypt device overlaps backing device");
// resize ok