diff --git a/tests/libtest/lib526.c b/tests/libtest/lib526.c
index c68e19b6d17bfeeb3d4fbc89c82575bfe78d3bfb..89fddbc51df2405d7279053df9bb360025d84815 100644
--- a/tests/libtest/lib526.c
+++ b/tests/libtest/lib526.c
@@ -215,7 +215,9 @@ int test(char *URL)
     res = TEST_ERR_RUNS_FOREVER;
   }
 
-/* test_cleanup: */
+#ifdef LIB532
+test_cleanup:
+#endif
 
 #ifndef LIB527
   /* get NUM_HANDLES easy handles */