Skip to contentSkip to conversation

tests: add missing include

PATCH In review Marc-André Lureau 3 participants 3 messages Jun 23, 2015 – Jun 24, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: add missing include

Fix make test errors of this kind on fedora 22:

linux-test.c:230:19: error: storage size of ‘rusg1’ isn’t known

     struct rusage rusg1, rusg2;
---
 tests/tcg/linux-test.c | 1 +
 tests/tcg/test_path.c  | 1 +
 2 files changed, 2 insertions(+)
tests/tcg/linux-test.c +1 -0
index 1c6c013..9b3ccc3 100644
@@ -38,6 +38,7 @@
 #include <sched.h>
 #include <dirent.h>
 #include <setjmp.h>
+#include <sys/resource.h>
 #include <sys/shm.h>
 
 #define TESTPATH "/tmp/linux-test.tmp"
tests/tcg/test_path.c +1 -0
index 1c29bce..edf280c 100644
@@ -7,6 +7,7 @@
 #include "util/qemu-timer-common.c"
 #include <stdarg.h>
 #include <sys/stat.h>
+#include <sys/resource.h>
 #include <fcntl.h>
 
 void qemu_log(const char *fmt, ...);
Signature · 1 line
2.4.2
#1 lore raw

Am 23.06.2015 um 18:40 schrieb Marc-André Lureau:

Quoted 10 lines

Fix make test errors of this kind on fedora 22:

linux-test.c:230:19: error: storage size of ‘rusg1’ isn’t known

     struct rusage rusg1, rusg2;
---
 tests/tcg/linux-test.c | 1 +
 tests/tcg/test_path.c  | 1 +
 2 files changed, 2 insertions(+)

I believe I already submitted such a patch and more. Peter didn't want to take them last minute for 2.3 - Peter, can you please reconsider that now?

Regards,
Andreas

Quoted 25 lines
tests/tcg/linux-test.c +1 -0
index 1c6c013..9b3ccc3 100644
@@ -38,6 +38,7 @@
 #include <sched.h>
 #include <dirent.h>
 #include <setjmp.h>
+#include <sys/resource.h>
 #include <sys/shm.h>
 
 #define TESTPATH "/tmp/linux-test.tmp"
tests/tcg/test_path.c +1 -0
index 1c29bce..edf280c 100644
@@ -7,6 +7,7 @@
 #include "util/qemu-timer-common.c"
 #include <stdarg.h>
 #include <sys/stat.h>
+#include <sys/resource.h>
 #include <fcntl.h>
 
 void qemu_log(const char *fmt, ...);
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Dilip Upmanyu, Graham Norton; HRB
21284 (AG Nürnberg)
#2 lore raw
Quoted 12 lines · Andreas Färber

Am 23.06.2015 um 18:40 schrieb Marc-André Lureau:

Quoted 10 lines

Fix make test errors of this kind on fedora 22:

linux-test.c:230:19: error: storage size of ‘rusg1’ isn’t known

     struct rusage rusg1, rusg2;
---
 tests/tcg/linux-test.c | 1 +
 tests/tcg/test_path.c  | 1 +
 2 files changed, 2 insertions(+)
Quoted 3 lines

I believe I already submitted such a patch and more. Peter didn't want to take them last minute for 2.3 - Peter, can you please reconsider that now?

...2.3 is long behind us so obviously its time pressures don't apply now. We're in 2.4 softfreeze right now so bug fixes like this are certainly OK.

-- PMM