clang-tools-extra/test/clang-tidy/performance-unnecessary-value-param-header.cpp: Resolve flakiness in the test.
Tests would go flaky if; 1. Using %T (not %t) 2. Put a file with common name like header.h into %T 3. Other tests (eg. misc-unused-parameters.cpp) are doing as well We should avoid using %T unless it really makes sense. llvm-svn: 307876
This commit is contained in:
parent
8050ea16b5
commit
02d34adfd8
|
@ -1,6 +1,8 @@
|
|||
// RUN: cp %S/Inputs/performance-unnecessary-value-param/header.h %T/header.h
|
||||
// RUN: %check_clang_tidy %s performance-unnecessary-value-param %t -- -- -std=c++11 -I %T
|
||||
// RUN: diff %T/header.h %S/Inputs/performance-unnecessary-value-param/header-fixed.h
|
||||
// RUN: rm -rf %t
|
||||
// RUN: mkdir %t
|
||||
// RUN: cp %S/Inputs/performance-unnecessary-value-param/header.h %t/header.h
|
||||
// RUN: %check_clang_tidy %s performance-unnecessary-value-param %t/temp -- -- -std=c++11 -I %t
|
||||
// RUN: diff %t/header.h %S/Inputs/performance-unnecessary-value-param/header-fixed.h
|
||||
|
||||
#include "header.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue