Progress indicators bug-fixes
This commit is contained in:
parent
b5858e4360
commit
352e6b5b96
@ -1,4 +1,4 @@
|
|||||||
--
|
---
|
||||||
name: "Bigexec Test"
|
name: "Bigexec Test"
|
||||||
description:
|
description:
|
||||||
Tests to ensure that the argument passing logic is not hard-coded
|
Tests to ensure that the argument passing logic is not hard-coded
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
@ -111,6 +112,7 @@ try(const char *first, ...)
|
|||||||
va_list ap;
|
va_list ap;
|
||||||
int num;
|
int num;
|
||||||
|
|
||||||
|
nprintf(".");
|
||||||
assert(first != NULL);
|
assert(first != NULL);
|
||||||
args[0] = _PATH_MYSELF;
|
args[0] = _PATH_MYSELF;
|
||||||
args[1] = first;
|
args[1] = first;
|
||||||
@ -125,6 +127,7 @@ try(const char *first, ...)
|
|||||||
assert(num < 20);
|
assert(num < 20);
|
||||||
args[num++] = s;
|
args[num++] = s;
|
||||||
}
|
}
|
||||||
|
nprintf("\n");
|
||||||
assert(num < 20);
|
assert(num < 20);
|
||||||
args[num] = NULL;
|
args[num] = NULL;
|
||||||
execv(_PATH_MYSELF, (char **)args);
|
execv(_PATH_MYSELF, (char **)args);
|
||||||
|
@ -228,7 +228,7 @@ test(int nowait)
|
|||||||
|
|
||||||
memset(buffer, 0, 30);
|
memset(buffer, 0, 30);
|
||||||
len = read(fd, buffer, 30);
|
len = read(fd, buffer, 30);
|
||||||
printf("%s\n", buffer);
|
printf("\n%s\n", buffer);
|
||||||
if(len != 30) {
|
if(len != 30) {
|
||||||
err(1, "Did not get expected number of characters\n");
|
err(1, "Did not get expected number of characters\n");
|
||||||
}
|
}
|
||||||
|
@ -81,10 +81,10 @@ main(int argc, char *argv[])
|
|||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
err(1, "%s: write", filename);
|
err(1, "%s: write", filename);
|
||||||
}
|
}
|
||||||
nprintf(".");
|
|
||||||
else if (r != 1) {
|
else if (r != 1) {
|
||||||
errx(1, "%s: write: Unexpected result count %d", filename, r);
|
errx(1, "%s: write: Unexpected result count %d", filename, r);
|
||||||
}
|
}
|
||||||
|
nprintf(".");
|
||||||
|
|
||||||
// Now check this byte.
|
// Now check this byte.
|
||||||
// First seek to the beginning and then seek back to where the byte
|
// First seek to the beginning and then seek back to where the byte
|
||||||
|
Loading…
x
Reference in New Issue
Block a user