Skip to content
Snippets Groups Projects
  • Kareem Zarka's avatar
    e42d3e6f
    hicolliecpptest.cpp: Fix HiCollieCppTest to verify process restart · e42d3e6f
    Kareem Zarka authored
    
    The previous implementation of HiCollieCppTest used the 'ps -A' command
    to check if a process had restarted, which was not reliable.
    This patch adds the creation and removal of a file
    'x_collie_watchdog_test_file' in the child process that is monitored,
    and the test cases now verify the presence and removal of this file to
    confirm that the process was restarted.
    Also, this commit updates the build recipe in
    openharmony-standard_3.0.bb to include the newly created patch file.
    
    Signed-off-by: default avatarKareem Zarka <kareem.zarka@huawei.com>
    e42d3e6f
    History
    hicolliecpptest.cpp: Fix HiCollieCppTest to verify process restart
    Kareem Zarka authored
    
    The previous implementation of HiCollieCppTest used the 'ps -A' command
    to check if a process had restarted, which was not reliable.
    This patch adds the creation and removal of a file
    'x_collie_watchdog_test_file' in the child process that is monitored,
    and the test cases now verify the presence and removal of this file to
    confirm that the process was restarted.
    Also, this commit updates the build recipe in
    openharmony-standard_3.0.bb to include the newly created patch file.
    
    Signed-off-by: default avatarKareem Zarka <kareem.zarka@huawei.com>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
test-xts-acts-fix-hicolliecpptest.patch 5.59 KiB