[SOLVED] CS /* Executes child-mm-wrt and verifies that the writes that should

$25

File Name: CS_/*_Executes_child-mm-wrt_and_verifies_that_the_writes_that_should.zip
File Size: 640.56 KB

5/5 - (1 vote)

/* Executes child-mm-wrt and verifies that the writes that should
have occurred really did. */

#include
#include tests/vm/sample.inc
#include tests/lib.h
#include tests/main.h

void
test_main (void)
{
pid_t child;

/* Make child write file. */
quiet = true;
CHECK ((child = exec (child-mm-wrt)) != -1, exec child-mm-wrt);
CHECK (wait (child) == 0, wait for child (should return 0));
quiet = false;

/* Check file contents. */
check_file (sample.txt, sample, sizeof sample);
}

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS /* Executes child-mm-wrt and verifies that the writes that should
$25