Skip to content

Commit

Permalink
corrected spelling mistakes
Browse files Browse the repository at this point in the history
Signed-off-by: xvijaysri <[email protected]>
  • Loading branch information
xvijaysri committed Aug 9, 2024
1 parent c2cf158 commit e7e24f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/runtime_src/tools/xclbinutil/XclBinUtilMain.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -587,15 +587,15 @@ int main_(int argc, const char** argv) {
}
}

if (fileCheck){
if (fileCheck) {
if (!xclBin.checkForValidSection() && !xclBin.checkForPlatformVbnv())
throw std::runtime_error("ERROR: The xclbin is missing platformVBNV information and atleast one section required by the 'file' command to identify its file type and display file characteristics.");
throw std::runtime_error("ERROR: The xclbin is missing platformVBNV information and at least one section required by the 'file' command to identify its file type and display file characteristics.");

else if (!xclBin.checkForPlatformVbnv())
throw std::runtime_error("ERROR: The xclbin is missing platformVBNV information required by the 'file' command to identify its file type and display file characteristics.");

else if (!xclBin.checkForValidSection())
throw std::runtime_error("ERROR: The xclbin is missing atleast one section required by the 'file' command to identify its file type and display file characteristics.");
throw std::runtime_error("ERROR: The xclbin is missing at least one section required by the 'file' command to identify its file type and display file characteristics.");
}
XUtil::QUIET("Leaving xclbinutil.");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def main():

# ---------------------------------------------------------------------------

step = "1) Create a valid xclbin that has platformVBNV information and atleast one section"
step = "1) Create a valid xclbin that has platformVBNV information and at least one section"

inputJSON = os.path.join(args.resource_dir, "debug_ip_layout.rtd")
outputXCLBIN = "valid.xclbin"
Expand Down Expand Up @@ -60,7 +60,7 @@ def main():

step = "4) Run file-check option on the invalid xclbin and validate the error message"

expectedMsg = "ERROR: The xclbin is missing atleast one section required by the 'file' command to identify its file type and display file characteristics.\n"
expectedMsg = "ERROR: The xclbin is missing at least one section required by the 'file' command to identify its file type and display file characteristics.\n"

cmd = [xclbinutil, "--file-check", "-i", outputXCLBIN]
compErrorMsg(step, cmd, expectedMsg)
Expand Down

0 comments on commit e7e24f3

Please sign in to comment.