Index: PRESUBMIT_test.py |
diff --git a/PRESUBMIT_test.py b/PRESUBMIT_test.py |
index 80c17567587099720a85849675a168ba72b9de5a..183ec6e54c839f71ad98827228ce195faa71819e 100755 |
--- a/PRESUBMIT_test.py |
+++ b/PRESUBMIT_test.py |
@@ -175,6 +175,16 @@ class IncludeOrderTest(unittest.TestCase): |
mock_input_api, mock_file, True, range(1, len(contents) + 1)) |
self.assertEqual(0, len(warnings)) |
+ def testSysIncludes(self): |
+ # #include <sys/...>'s can appear in any order. |
+ mock_input_api = MockInputApi() |
+ contents = ['#include <sys/b.h>', |
+ '#include <sys/a.h>'] |
+ mock_file = MockFile('', contents) |
+ warnings = PRESUBMIT._CheckIncludeOrderInFile( |
+ mock_input_api, mock_file, True, range(1, len(contents) + 1)) |
+ self.assertEqual(0, len(warnings)) |
+ |
class VersionControlerConflictsTest(unittest.TestCase): |
def testTypicalConflict(self): |