From c1df2ad0ab2a51e1700cb1afa9d6d7d16d6fff94 Mon Sep 17 00:00:00 2001 From: Stephen Neuendorffer Date: Tue, 8 Aug 2023 14:53:04 -0700 Subject: [PATCH] Fix 02_lock_acquire_release This test was incorrect --- test/unit_tests/02_lock_acquire_release/test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit_tests/02_lock_acquire_release/test.cpp b/test/unit_tests/02_lock_acquire_release/test.cpp index b11739b1a9..8591d5a61c 100644 --- a/test/unit_tests/02_lock_acquire_release/test.cpp +++ b/test/unit_tests/02_lock_acquire_release/test.cpp @@ -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++; @@ -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);