if(isChild) {
logfile << "----Begin CreateFile tests ----\n";
- cerr <<
+ cerr <<
"TEST:CREATE:001 Requesting a sharing mode that conflicts with the access mode "
"specified in a previous open requestion whose handle is still open should be an error.\n";
} else {
cerr << "TEST:LOCK:002:01 PASS\n";
}
-
+
cerr << "TEST:LOCK:002:02 Read in partially locked area (A)\n";
logfile << "SetFilePointer(h_file_base, PAGE_BEGIN(27), NULL, FILE_BEGIN)\n";
} else {
cerr << "TEST:LOCK:002:02 PASS\n";
}
-
+
cerr << "TEST:LOCK:002:03 Read in locked area\n";
logfile << "SetFilePointer(h_file_base, PAGE_BEGIN(32), NULL, FILE_BEGIN)\n";
} else {
cerr << "TEST:LOCK:002:03 PASS\n";
}
-
+
cerr << "TEST:LOCK:002:04 Read in partially locked area (B)\n";
logfile << "SetFilePointer(h_file_base, PAGE_BEGIN(37), NULL, FILE_BEGIN)\n";
} else {
cerr << "TEST:LOCK:002:04 PASS\n";
}
-
+
cerr << "TEST:LOCK:002:05 Read in partially unowned area (A)\n";
logfile << "SetFilePointer(h_file_base, PAGE_BEGIN(47), NULL, FILE_BEGIN)\n";
} else {
cerr << "TEST:LOCK:002:05 ***FAILED***\n";
}
-
+
cerr << "TEST:LOCK:002:06 Read in fully unowned area\n";
logfile << "SetFilePointer(h_file_base, PAGE_BEGIN(52), NULL, FILE_BEGIN)\n";
} else {
cerr << "TEST:LOCK:002:06 ***FAILED***\n";
}
-
+
cerr << "TEST:LOCK:002:07 Read in partially unowned area (B)\n";
logfile << "SetFilePointer(h_file_base, PAGE_BEGIN(56), NULL, FILE_BEGIN)\n";
cerr << "done\n"
<< "TEST:WLCS:002:06 PASS\n";
} else {
- logfile << "Unlock failed! last error = "
+ logfile << "Unlock failed! last error = "
<< e << "\n";
cerr << "TEST:WLCS:002:06 FAILED! Unlock failed! see log\n";
rv = 1;