Commit 41fb6e1f authored by teravest's avatar teravest Committed by Commit bot

Fix build failure on linux_arm_cross_compile.

I recently added a test that uses pthread_t without including the pthread.h
header. This appears to be causing failures on the linux_arm_cross_compile bot.

BUG=394130

Review URL: https://codereview.chromium.org/535643005

Cr-Commit-Position: refs/heads/master@{#293561}
parent be5942a1
......@@ -8,6 +8,7 @@
// Test for resource open before PPAPI initialization.
//
#include <pthread.h>
#include <stdio.h>
#include <string.h>
......@@ -150,15 +151,16 @@ class TestInstance : public pp::Instance {
return;
}
pthread_t thread;
// We test the manifest routines again after PPAPI has initialized to
// ensure that they still work.
//
// irt_open_resource() isn't allowed to be called on the main thread once
// pepper starts, so these tests must happen on a background thread.
pthread_create(&thread_, NULL, &RunTestsOnBackgroundThread, NULL);
//
// TODO(teravest): Check the return value here.
pthread_create(&thread, NULL, &RunTestsOnBackgroundThread, NULL);
}
private:
pthread_t thread_;
};
class TestModule : public pp::Module {
......
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