forked from rosa/hakurei
internal/rosa/package/strace: build from git sources
This removes xz input. This change also enables tests. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
diff --git a/tests/nlattr.c b/tests/nlattr.c
|
||||
index 7e47f4e8f..3eb9c53da 100644
|
||||
--- a/tests/nlattr.c
|
||||
+++ b/tests/nlattr.c
|
||||
@@ -43,7 +43,7 @@ test_nlattr(const int fd)
|
||||
};
|
||||
struct msg *msg;
|
||||
struct nlattr *nla;
|
||||
- unsigned int msg_len;
|
||||
+ uint32_t msg_len;
|
||||
long rc;
|
||||
|
||||
/* fetch fail: len < sizeof(struct nlattr) */
|
||||
@@ -250,7 +250,7 @@ test_nla_type(const int fd)
|
||||
};
|
||||
struct msg *msg;
|
||||
struct nlattr *nla;
|
||||
- unsigned int msg_len;
|
||||
+ uint32_t msg_len;
|
||||
long rc;
|
||||
|
||||
msg_len = NLMSG_SPACE(sizeof(msg->udm)) + sizeof(*nla);
|
||||
diff --git a/tests/readahead.c b/tests/readahead.c
|
||||
index 10723785c..b9597e697 100644
|
||||
--- a/tests/readahead.c
|
||||
+++ b/tests/readahead.c
|
||||
@@ -42,7 +42,7 @@ static const int fds[] = {
|
||||
0x7fffffff,
|
||||
};
|
||||
|
||||
-static const off64_t offsets[] = {
|
||||
+static const off_t offsets[] = {
|
||||
-0x8000000000000000LL,
|
||||
-0x5060708090a0b0c0LL,
|
||||
-1LL,
|
||||
diff --git a/tests/sync_file_range.c b/tests/sync_file_range.c
|
||||
index e93ab6cf0..dc76865af 100644
|
||||
--- a/tests/sync_file_range.c
|
||||
+++ b/tests/sync_file_range.c
|
||||
@@ -20,8 +20,8 @@ int
|
||||
main(void)
|
||||
{
|
||||
const int fd = -1;
|
||||
- const off64_t offset = 0xdeadbeefbadc0dedULL;
|
||||
- const off64_t nbytes = 0xfacefeedcafef00dULL;
|
||||
+ const off_t offset = 0xdeadbeefbadc0dedULL;
|
||||
+ const off_t nbytes = 0xfacefeedcafef00dULL;
|
||||
const unsigned int flags = -1;
|
||||
|
||||
int rc = sync_file_range(fd, offset, nbytes, flags);
|
||||
diff --git a/tests/sync_file_range2.c b/tests/sync_file_range2.c
|
||||
index b8dc71219..e4b003c4d 100644
|
||||
--- a/tests/sync_file_range2.c
|
||||
+++ b/tests/sync_file_range2.c
|
||||
@@ -20,8 +20,8 @@ int
|
||||
main(void)
|
||||
{
|
||||
const int fd = -1;
|
||||
- const off64_t offset = 0xdeadbeefbadc0ded;
|
||||
- const off64_t nbytes = 0xfacefeedcafef00d;
|
||||
+ const off_t offset = 0xdeadbeefbadc0ded;
|
||||
+ const off_t nbytes = 0xfacefeedcafef00d;
|
||||
const unsigned int flags = -1;
|
||||
|
||||
int rc = sync_file_range(fd, offset, nbytes, flags);
|
||||
Reference in New Issue
Block a user