Skip to content

Commit 1eef516

Browse files
Fix test output
1 parent 6949282 commit 1eef516

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/grate-tests/diff-cage-args.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ int main() {
66
int fd = open("redirected.txt", O_RDONLY, 0);
77
printf("Hello world. FD=%d\n", fd);
88

9-
char buf[10];
9+
char buf[11];
1010
int ret = read(1, buf, 10);
1111

1212
printf("Goodbye world! ret=%d buf=%s\n", ret, buf);

tests/grate-tests/diff-cage-args_grate.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ int pass_fptr_to_wt(uint64_t fn_ptr_uint, uint64_t cageid, uint64_t arg1,
1616
uint64_t arg6, uint64_t arg6cage) {
1717
if (fn_ptr_uint == 0) {
1818
fprintf(stderr,
19-
"[Grate|interpose-exec] Invalid function ptr\n");
19+
"[Grate|diff-cage-args] Invalid function ptr\n");
2020
assert(0);
2121
}
2222

23-
printf("[Grate|interpose-exec] Handling function ptr: %llu from cage: "
23+
printf("[Grate|diff-cage-args] Handling function ptr: %llu from cage: "
2424
"%llu\n",
2525
fn_ptr_uint, cageid);
2626

@@ -64,7 +64,7 @@ int open_grate(uint64_t cageid, uint64_t arg1, uint64_t arg1cage, uint64_t arg2,
6464
uint64_t arg4, uint64_t arg4cage, uint64_t arg5,
6565
uint64_t arg5cage, uint64_t arg6, uint64_t arg6cage) {
6666
printf(
67-
"[Grate|interpose-exec] In exec_grate %d handler for cage: %llu\n",
67+
"[Grate|diff-cage-args] In open_grate %d handler for cage: %llu\n",
6868
getpid(), cageid);
6969

7070
int self_grate_id = getpid();
@@ -124,13 +124,13 @@ int main(int argc, char *argv[]) {
124124
while (wait(&status) > 0) {
125125
if (status != 0) {
126126
fprintf(stderr,
127-
"[Grate|interpose-exec] FAIL: child exited "
127+
"[Grate|diff-cage-args] FAIL: child exited "
128128
"with status %d\n",
129129
status);
130130
assert(0);
131131
}
132132
}
133133

134-
printf("[Grate|interpose-exec] PASS\n");
134+
printf("[Grate|diff-cage-args] PASS\n");
135135
return 0;
136136
}

0 commit comments

Comments
 (0)