Skip to content

Commit

Permalink
Fix 02_lock_acquire_release
Browse files Browse the repository at this point in the history
This test was incorrect
  • Loading branch information
stephenneuendorffer committed Aug 10, 2023
1 parent c49db4f commit c1df2ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit_tests/02_lock_acquire_release/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ main(int argc, char *argv[])
int errors = 0;

// This should timeout and return an error condition.
if (mlir_aie_acquire_lock1(_xaie, 1, 0)) {
if (!mlir_aie_acquire_lock1(_xaie, 1, 0)) {
// Succeeded! Which is an error.
printf("Error: Lock acquired successfully in wrong state!\n");
errors++;
Expand Down Expand Up @@ -106,6 +106,7 @@ main(int argc, char *argv[])
res = 0;
} else {
printf("Fail!\n");
printf("%d Errors\n", errors);
res = -1;
}
mlir_aie_deinit_libxaie(_xaie);
Expand Down

0 comments on commit c1df2ad

Please sign in to comment.