Verified Commit 581bddc0 authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

cxx_thread: Fix negated assertion

The assertion should be that the return value was 0.

Additionally, show the result code if the return value is not 0.
parent a9238241
......@@ -28,7 +28,7 @@ static void create_key(void)
{
int res = pthread_key_create(&key, run_dtors);
GCOMPAT__assert_with_reason(res, "No key for thread_atexit list");
GCOMPAT__assert_with_reason(!res, "No key for thread_atexit list: %d\n", res);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment