You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File watches are a feature that would make checking for data consistency a lot easier on users. Therefore, CrashMonkey should support a system where a user can tell CrashMonkey what files should no longer change. These watches may be tied to certain checkpoints in the workload, or they may be something that holds through the entire workload.
For watches, we can assume a few things:
the call will block until the watch has been setup
the watch will either reference a checkpoint, or be before any file system operations have completed
if the watch references a checkpoint, the watch function is called directly after a call to checkpoint
This part of the watch infrastructure allows CrashMonkey to report errors when the files being watched change in generated crash states.
Each time a crash state is generated, CrashMonkey should examine the checkpoint for the crash state (see #41/#42) and then check all file watches referencing that checkpoint and earlier.
When "checking" a watched file, CrashMonkey should checksum the file data and selected metadata (see #44) at that path present in the generated crash state. If the crash state's checksum does not match the checksum calculated when the file watch was setup, then CrashMonkey should note the error in detail (ex. "checksum for file is incorrect" -- see DataTestResult.h for an example of error strings) in a results/xResult struct (you will likely have to modify or make a new struct for this). Recording specific errors in a xResult struct will allow these errors to be printed to the log later in test harness execution.
The text was updated successfully, but these errors were encountered:
File watches are a feature that would make checking for data consistency a lot easier on users. Therefore, CrashMonkey should support a system where a user can tell CrashMonkey what files should no longer change. These watches may be tied to certain checkpoints in the workload, or they may be something that holds through the entire workload.
For watches, we can assume a few things:
This part of the watch infrastructure allows CrashMonkey to report errors when the files being watched change in generated crash states.
Each time a crash state is generated, CrashMonkey should examine the checkpoint for the crash state (see #41/#42) and then check all file watches referencing that checkpoint and earlier.
When "checking" a watched file, CrashMonkey should checksum the file data and selected metadata (see #44) at that path present in the generated crash state. If the crash state's checksum does not match the checksum calculated when the file watch was setup, then CrashMonkey should note the error in detail (ex. "checksum for file is incorrect" -- see DataTestResult.h for an example of error strings) in a
results/xResult
struct (you will likely have to modify or make a new struct for this). Recording specific errors in axResult
struct will allow these errors to be printed to the log later in test harness execution.The text was updated successfully, but these errors were encountered: