[LTP] [PATCH] lib/checkpoint: remove deprecated tst_checkpoint_init() and legacy macro
    Li Wang 
    liwang@redhat.com
       
    Sat Jun 28 11:30:07 CEST 2025
    
    
  
On Sat, Jun 28, 2025 at 11:13 AM Li Wang via ltp <ltp@lists.linux.it> wrote:
> The function tst_checkpoint_init() and macro TST_CHECKPOINT_INIT were
> used by old library tests for setting up checkpoint futex memory.
>
> These APIs have been fully replaced by tst_reinit() and in the new
> checkpoint infrastructure.
>
> So let's get rid of them and rewrite the checkpoint tests in newlib_tests/.
>
Seems tst_ipc_path should be deleted as well:
--- a/include/tst_checkpoint.h
+++ b/include/tst_checkpoint.h
@@ -86,6 +86,4 @@
         tst_safe_checkpoint_wait(__FILE__, __LINE__, NULL, id, 0); \
 } while (0)
-extern const char *tst_ipc_path;
-
 #endif /* TST_CHECKPOINT__ */
diff --git a/lib/tst_test.c b/lib/tst_test.c
index 17ce91932..33f3cfa0b 100644
--- a/lib/tst_test.c
+++ b/lib/tst_test.c
@@ -108,7 +108,6 @@ extern unsigned int tst_max_futexes;
 static int ipc_fd;
 static char ipc_path[1064];
-const char *tst_ipc_path = ipc_path;
 static char shm_path[1024];
-- 
Regards,
Li Wang
    
    
More information about the ltp
mailing list