X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftests%2Fvm%2Fchild-linear.c;h=cdbe82e897bca71acaf714680275d648e0161c9e;hb=520ff4dd2a106a4d4a21468a72ba820c8ea7d242;hp=4fde22c6d4274785935e6f959c538bde5c8fb5fc;hpb=615bf3b3d2a8573ed6fb9ddc0055745e163ac999;p=pintos-anon diff --git a/src/tests/vm/child-linear.c b/src/tests/vm/child-linear.c index 4fde22c..cdbe82e 100644 --- a/src/tests/vm/child-linear.c +++ b/src/tests/vm/child-linear.c @@ -1,11 +1,13 @@ +/* Child process of page-parallel. + Encrypts 1 MB of zeros, then decrypts it, and ensures that + the zeros are back. */ + #include #include "tests/arc4.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 @@ -15,6 +17,8 @@ main (int argc, char *argv[]) struct arc4 arc4; size_t i; + test_name = "child-linear"; + /* Encrypt zeros. */ arc4_init (&arc4, key, strlen (key)); arc4_crypt (&arc4, buf, SIZE);