added more multithreaded tests that are useful with tsan
Also made various small cleanups while writing and checking these tests.
diff --git a/aos/common/common.gyp b/aos/common/common.gyp
index 186599a..0a4bf62 100644
--- a/aos/common/common.gyp
+++ b/aos/common/common.gyp
@@ -276,7 +276,7 @@
'target_name': 'mutex_test',
'type': 'executable',
'sources': [
- 'mutex_test.cpp',
+ 'mutex_test.cc',
],
'dependencies': [
'<(EXTERNALS):gtest',
@@ -284,6 +284,8 @@
'die',
'<(AOS)/build/aos.gyp:logging',
'<(AOS)/common/util/util.gyp:death_test_log_implementation',
+ '<(AOS)/common/util/util.gyp:thread',
+ '<(AOS)/common/common.gyp:time',
],
},
{