projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix link errors with GCC 10 and binutils 2.34 on Fedora
[pintos-anon]
/
src
/
tests
/
filesys
/
base
/
child-syn-read.c
diff --git
a/src/tests/filesys/base/child-syn-read.c
b/src/tests/filesys/base/child-syn-read.c
index a7801d4774e21673661053e89681bc56e96325a2..27ee59d99d03f36f12d10e01f7ddd16e2889d264 100644
(file)
--- a/
src/tests/filesys/base/child-syn-read.c
+++ b/
src/tests/filesys/base/child-syn-read.c
@@
-1,7
+1,7
@@
/* Child process for syn-read test.
Reads the contents of a test file a byte at a time, in the
hope that this will take long enough that we can get a
/* Child process for syn-read test.
Reads the contents of a test file a byte at a time, in the
hope that this will take long enough that we can get a
- significant amount of contention in the kernel filesystem
+ significant amount of contention in the kernel file
system
code. */
#include <random.h>
code. */
#include <random.h>
@@
-20,6
+20,7
@@
main (int argc, const char *argv[])
int fd;
size_t i;
int fd;
size_t i;
+ test_name = "child-syn-read";
quiet = true;
CHECK (argc == 2, "argc must be 2, actually %d", argc);
quiet = true;
CHECK (argc == 2, "argc must be 2, actually %d", argc);
@@
-28,12
+29,12
@@
main (int argc, const char *argv[])
random_init (0);
random_bytes (buf, sizeof buf);
random_init (0);
random_bytes (buf, sizeof buf);
- CHECK ((fd = open (file
name)) > 1, "open \"%s\"", file
name);
+ CHECK ((fd = open (file
_name)) > 1, "open \"%s\"", file_
name);
for (i = 0; i < sizeof buf; i++)
{
char c;
for (i = 0; i < sizeof buf; i++)
{
char c;
- CHECK (read (fd, &c, 1) > 0, "read \"%s\"", filename);
- compare_bytes (&c, buf + i, 1, i, filename);
+ CHECK (read (fd, &c, 1) > 0, "read \"%s\"", file
_
name);
+ compare_bytes (&c, buf + i, 1, i, file
_
name);
}
close (fd);
}
close (fd);