Revert "Merging in 1.0.2."

This reverts commit 50cf3276e7.
This commit is contained in:
Geoffrey Challen
2017-01-09 22:52:13 -05:00
parent 50cf3276e7
commit e318e3171e
118 changed files with 3158 additions and 1350 deletions

View File

@@ -39,45 +39,53 @@
#include <stdio.h>
#include <stdlib.h>
#include <test161/test161.h>
#include <test/test.h>
#define PageSize 4096
#define NumPages 512
int sparse[NumPages][PageSize]; /* use only the first element in the row */
#define PROGRESS_INTERVAL 20
int
main(void)
{
int i,j;
printf("Entering the huge program - I will stress test your VM\n");
tprintf("Entering the huge program - I will stress test your VM\n");
/* move number in so that sparse[i][0]=i */
for (i=0; i<NumPages; i++) {
TEST161_LPROGRESS_N(i, PROGRESS_INTERVAL);
sparse[i][0]=i;
}
printf("stage [1] done\n");
lsay("\nstage [1] done\n");
/* increment each location 5 times */
for (j=0; j<5; j++) {
for (i=0; i<NumPages; i++) {
TEST161_LPROGRESS_N(i, PROGRESS_INTERVAL);
sparse[i][0]++;
}
printf("stage [2.%d] done\n", j);
lsay("\nstage [2.%d] done\n", j);
}
printf("stage [2] done\n");
lsay("\nstage [2] done\n");
/* check if the numbers are sane */
for (i=NumPages-1; i>=0; i--) {
TEST161_LPROGRESS_N(i, PROGRESS_INTERVAL);
if (sparse[i][0]!=i+5) {
printf("BAD NEWS!!! - your VM mechanism has a bug!\n");
lsay("BAD NEWS!!! - your VM mechanism has a bug!\n");
success(TEST161_FAIL, SECRET, "/testbin/huge");
exit(1);
}
}
printf("You passed!\n");
success(TEST161_SUCCESS, SECRET, "/testbin/huge");
return 0;
}