Fix pthread_setname_np's behavior on invalid pthread_ts.

Change-Id: I0a154beaab4d164ac812f2564d12e4d79b80a8e8
This commit is contained in:
Elliott Hughes
2013-03-21 20:02:35 -07:00
parent 26c815c489
commit a41ba2f0bf
2 changed files with 16 additions and 8 deletions

View File

@@ -239,7 +239,7 @@ TEST(pthread, pthread_setname_np__no_such_thread) {
MakeDeadThread(dead_thread);
// Call pthread_setname_np after thread has already exited.
ASSERT_EQ(ENOENT, pthread_setname_np(dead_thread, "short 3"));
ASSERT_EQ(ESRCH, pthread_setname_np(dead_thread, "short 3"));
}
#endif