Skip to content

Commit

Permalink
Simulate fault injection in the testgpuerror function
Browse files Browse the repository at this point in the history
Simulate fault injection in gputest.cpp by modifying the return value of
the testgpuerror function. Set the return value to 1 regardless of the
success of the function.
  • Loading branch information
ChinChangYang committed Dec 10, 2023
1 parent 8c03674 commit 3d6f2bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/command/gputest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,6 @@ int MainCmds::testgpuerror(const vector<string>& args) {
NeuralNet::globalCleanup();
ScoreValue::freeTables();

return success ? 0 : 1;
// XXX: Fault-injection
return 1; // success ? 0 : 1;
}

0 comments on commit 3d6f2bb

Please sign in to comment.