Skip to content

Commit

Permalink
Remove expected warning from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Feb 20, 2024
1 parent 67fb670 commit 08daf44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion tests/core/arch-x86/stalker-x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -3548,7 +3548,7 @@ run_on_thread (const GumCpuContext * cpu_context, gpointer user_data)
{
RunOnThreadCtx * ctx = (RunOnThreadCtx *) user_data;
g_usleep (250000);
ctx->thread_id = gum_prcess_get_current_thread_id ();
ctx->thread_id = gum_process_get_current_thread_id ();

if (ctx->thread_id == ctx->caller_id)
g_assert_null (cpu_context);
Expand Down
10 changes: 0 additions & 10 deletions tests/gumjs/script.c
Original file line number Diff line number Diff line change
Expand Up @@ -5406,11 +5406,6 @@ TESTCASE (process_can_run_on_thread_sync)

thread = create_sleeping_dummy_thread_sync (&done, &thread_id);

#if !defined (HAVE_I386)
g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING,
"Stalker Run-On-Thread Unsupported");
#endif

COMPILE_AND_LOAD_SCRIPT (
"const threads = Process.enumerateThreads();"
"const thread = threads.find(t => t.id == " GUM_PTR_CONST ");"
Expand All @@ -5435,11 +5430,6 @@ TESTCASE (process_can_run_on_thread)

thread = create_sleeping_dummy_thread_sync (&done, &thread_id);

#if !defined (HAVE_I386)
g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING,
"Stalker Run-On-Thread Unsupported");
#endif

COMPILE_AND_LOAD_SCRIPT (
"async function run () {"
" const threads = Process.enumerateThreads();"
Expand Down

0 comments on commit 08daf44

Please sign in to comment.