Skip to content

Commit 257f450

Browse files
committed
fixup! nvm: nonmodifiable flag tests
1 parent ec72810 commit 257f450

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

test/wh_test_nvmflags.c

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -712,16 +712,19 @@ int whTest_NvmFlags(void)
712712
WH_TEST_PRINT("--- NVM Object Tests (NONMODIFIABLE) ---\n");
713713

714714
ret = _testNvmNonmodifiableNoOverwrite(client, server);
715-
if (ret != WH_ERROR_OK) goto cleanup;
715+
if (ret != WH_ERROR_OK)
716+
goto cleanup;
716717

717718
ret = _testNvmNonmodifiableNoDestroy(client, server);
718-
if (ret != WH_ERROR_OK) goto cleanup;
719+
if (ret != WH_ERROR_OK)
720+
goto cleanup;
719721

720722
ret = _testNvmNondestroyableModifyNoDestroy(client, server);
721723
if (ret != WH_ERROR_OK) goto cleanup;
722724

723725
ret = _testNvmModifiableControl(client, server);
724-
if (ret != WH_ERROR_OK) goto cleanup;
726+
if (ret != WH_ERROR_OK)
727+
goto cleanup;
725728

726729
/*
727730
* Key Object Tests - NONMODIFIABLE
@@ -730,19 +733,23 @@ int whTest_NvmFlags(void)
730733
WH_TEST_PRINT("\n--- Key Object Tests (NONMODIFIABLE) ---\n");
731734

732735
ret = _testKeyNonmodifiableNoRecache(client, server);
733-
if (ret != WH_ERROR_OK) goto cleanup;
736+
if (ret != WH_ERROR_OK)
737+
goto cleanup;
734738

735739
ret = _testKeyNonmodifiablePromoteInNvm(client, server);
736-
if (ret != WH_ERROR_OK) goto cleanup;
740+
if (ret != WH_ERROR_OK)
741+
goto cleanup;
737742

738743
ret = _testKeyNonmodifiableNoErase(client, server);
739-
if (ret != WH_ERROR_OK) goto cleanup;
744+
if (ret != WH_ERROR_OK)
745+
goto cleanup;
740746

741747
ret = _testKeyNondestroyableNoErase(client, server);
742748
if (ret != WH_ERROR_OK) goto cleanup;
743749

744750
ret = _testKeyModifiableControl(client, server);
745-
if (ret != WH_ERROR_OK) goto cleanup;
751+
if (ret != WH_ERROR_OK)
752+
goto cleanup;
746753
#endif
747754

748755
/*

0 commit comments

Comments
 (0)