projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix link errors with GCC 10 and binutils 2.34 on Fedora
[pintos-anon]
/
src
/
tests
/
vm
/
child-linear.c
diff --git
a/src/tests/vm/child-linear.c
b/src/tests/vm/child-linear.c
index 7515e4ebf2bc9f6e15e10a48e4b1b69ea95cb8c8..cdbe82e897bca71acaf714680275d648e0161c9e 100644
(file)
--- a/
src/tests/vm/child-linear.c
+++ b/
src/tests/vm/child-linear.c
@@
-1,5
+1,5
@@
/* Child process of page-parallel.
/* Child process of page-parallel.
- Encrypts 1
28 k
B of zeros, then decrypts it, and ensures that
+ Encrypts 1
M
B of zeros, then decrypts it, and ensures that
the zeros are back. */
#include <string.h>
the zeros are back. */
#include <string.h>
@@
-7,9
+7,7
@@
#include "tests/lib.h"
#include "tests/main.h"
#include "tests/lib.h"
#include "tests/main.h"
-const char *test_name = "child-linear";
-
-#define SIZE (128 * 1024)
+#define SIZE (1024 * 1024)
static char buf[SIZE];
int
static char buf[SIZE];
int
@@
-19,6
+17,8
@@
main (int argc, char *argv[])
struct arc4 arc4;
size_t i;
struct arc4 arc4;
size_t i;
+ test_name = "child-linear";
+
/* Encrypt zeros. */
arc4_init (&arc4, key, strlen (key));
arc4_crypt (&arc4, buf, SIZE);
/* Encrypt zeros. */
arc4_init (&arc4, key, strlen (key));
arc4_crypt (&arc4, buf, SIZE);