[clang-tidy] Fix test that requires Windows platofrm
authorGeorgy Komarov <jubnzv@gmail.com>
Wed, 12 May 2021 17:23:05 +0000 (20:23 +0300)
committerGeorgy Komarov <jubnzv@gmail.com>
Thu, 13 May 2021 12:51:53 +0000 (15:51 +0300)
This commit fixes the cppcoreguidelines-pro-type-vararg test when it
runs on a Windows host, but the toolchain is targeted a non-Windows
platform.

Reviewed By: njames93

Differential Revision: https://reviews.llvm.org/D102337

clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-pro-type-vararg-ms.cpp

index 9cb8249..2a40515 100644 (file)
@@ -2,9 +2,7 @@
 // Ensure that the 'cppcoreguidelines-pro-type-vararg' check works with the
 // built-in va_list on Windows systems.
 
-// REQUIRES: system-windows
-
-// RUN: %check_clang_tidy %s cppcoreguidelines-pro-type-vararg %t
+// RUN: %check_clang_tidy %s cppcoreguidelines-pro-type-vararg %t -- --extra-arg=--target=x86_64-windows
 
 void test_ms_va_list(int a, ...) {
   __builtin_ms_va_list ap;