Progress indicators bug-fixes

This commit is contained in:
Guru Prasad Srinivasa 2016-03-01 15:31:43 -05:00
parent b5858e4360
commit 352e6b5b96
4 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
--
---
name: "Bigexec Test"
description:
Tests to ensure that the argument passing logic is not hard-coded

View File

@ -36,6 +36,7 @@
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
@ -111,6 +112,7 @@ try(const char *first, ...)
va_list ap;
int num;
nprintf(".");
assert(first != NULL);
args[0] = _PATH_MYSELF;
args[1] = first;
@ -125,6 +127,7 @@ try(const char *first, ...)
assert(num < 20);
args[num++] = s;
}
nprintf("\n");
assert(num < 20);
args[num] = NULL;
execv(_PATH_MYSELF, (char **)args);

View File

@ -228,7 +228,7 @@ test(int nowait)
memset(buffer, 0, 30);
len = read(fd, buffer, 30);
printf("%s\n", buffer);
printf("\n%s\n", buffer);
if(len != 30) {
err(1, "Did not get expected number of characters\n");
}

View File

@ -81,10 +81,10 @@ main(int argc, char *argv[])
if (r < 0) {
err(1, "%s: write", filename);
}
nprintf(".");
else if (r != 1) {
errx(1, "%s: write: Unexpected result count %d", filename, r);
}
nprintf(".");
// Now check this byte.
// First seek to the beginning and then seek back to where the byte