Commit cd8e76c5 authored by Eric Cano's avatar Eric Cano
Browse files

Renamed the system test file (missing in previous commit)

parent c65b87a9
......@@ -94,9 +94,18 @@ int main ()
}
try {
/**
* We will write on the tape, so prepare 2 blocks
*/
std::cout << "-- INFO --------------------------------------" << std::endl
<< " Rewinding, writing 2 blocks and repositioning on block 2" << std::endl
<< "----------------------------------------------" << std::endl;
drive->rewind();
/* For some unexplained (TODO) reason, mhvtl does not accept blocks smaller than 4 bytes */
drive->writeBlock((unsigned char *)"X123", 4);
drive->writeBlock((unsigned char *)"Y123", 4);
/**
* trying to do position to the block 2.
* The tape should be mounted and have at least 2 blocks written.
*/
drive->positionToLogicalObject(2);
} catch (std::exception & e) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment