From 42910df656d26f6c1a7576e880b585e0db6b567e Mon Sep 17 00:00:00 2001 From: Mihail Mihov Date: Mon, 25 Mar 2024 14:42:49 +0200 Subject: [PATCH] Enable tests with failing asserts --- test/Arrays/ArrayInputsReverseMode.C | 1 - test/Arrays/ArrayInputsVectorForwardMode.C | 2 -- test/FirstDerivative/Overloads.C | 1 - test/FirstDerivative/VirtualMethodsCall.C | 1 - test/ForwardMode/UserDefinedTypes.C | 4 +--- test/ForwardMode/VectorMode.C | 2 -- test/ForwardMode/VectorModeInterface.C | 2 -- test/Gradient/MemberFunctions.C | 2 -- test/Misc/RunDemos.C | 2 -- test/NumericalDiff/GradientMultiArg.C | 1 - test/NumericalDiff/NumDiff.C | 1 - 11 files changed, 1 insertion(+), 18 deletions(-) diff --git a/test/Arrays/ArrayInputsReverseMode.C b/test/Arrays/ArrayInputsReverseMode.C index 618dc8874..ac660d734 100644 --- a/test/Arrays/ArrayInputsReverseMode.C +++ b/test/Arrays/ArrayInputsReverseMode.C @@ -4,7 +4,6 @@ // RUN: ./ArrayInputsReverseMode.out | FileCheck -check-prefix=CHECK-EXEC %s //CHECK-NOT: {{.*error|warning|note:.*}} -// XFAIL: asserts #include "clad/Differentiator/Differentiator.h" diff --git a/test/Arrays/ArrayInputsVectorForwardMode.C b/test/Arrays/ArrayInputsVectorForwardMode.C index 50f25739d..41394de91 100644 --- a/test/Arrays/ArrayInputsVectorForwardMode.C +++ b/test/Arrays/ArrayInputsVectorForwardMode.C @@ -1,8 +1,6 @@ // RUN: %cladclang %s -I%S/../../include -oArrayInputsVectorForwardMode.out 2>&1 | FileCheck %s // RUN: ./ArrayInputsVectorForwardMode.out | FileCheck -check-prefix=CHECK-EXEC %s -// XFAIL: asserts - // CHECK-NOT: {{.*error|warning|note:.*}} #include "clad/Differentiator/Differentiator.h" diff --git a/test/FirstDerivative/Overloads.C b/test/FirstDerivative/Overloads.C index 025fd7e0b..19b55db81 100644 --- a/test/FirstDerivative/Overloads.C +++ b/test/FirstDerivative/Overloads.C @@ -1,6 +1,5 @@ // RUN: %cladclang %s -I%S/../../include -oOverloads.out 2>&1 | FileCheck %s // RUN: ./Overloads.out | FileCheck -check-prefix=CHECK-EXEC %s -// XFAIL: asserts //CHECK-NOT: {{.*error|warning|note:.*}} // XFAIL: target={{i586.*}} diff --git a/test/FirstDerivative/VirtualMethodsCall.C b/test/FirstDerivative/VirtualMethodsCall.C index 8ce06a8f9..157e05c40 100644 --- a/test/FirstDerivative/VirtualMethodsCall.C +++ b/test/FirstDerivative/VirtualMethodsCall.C @@ -1,6 +1,5 @@ // RUN: %cladclang %s -I%S/../../include -oVirtualMethodsCall.out 2>&1 | FileCheck %s // RUN: ./VirtualMethodsCall.out | FileCheck -check-prefix=CHECK-EXEC %s -// XFAIL: asserts // Fails on clang-18 due to https://github.com/llvm/llvm-project/issues/87151 // XFAIL: clang-18 //CHECK-NOT: {{.*error|warning|note:.*}} diff --git a/test/ForwardMode/UserDefinedTypes.C b/test/ForwardMode/UserDefinedTypes.C index 232e6b51b..3b24a17a6 100644 --- a/test/ForwardMode/UserDefinedTypes.C +++ b/test/ForwardMode/UserDefinedTypes.C @@ -1,8 +1,6 @@ // RUN: %cladclang %s -I%S/../../include -oUserDefinedTypes.out | FileCheck %s // RUN: ./UserDefinedTypes.out | FileCheck -check-prefix=CHECK-EXEC %s -// XFAIL: asserts - // CHECK-NOT: {{.*error|warning|note:.*}} #include "clad/Differentiator/Differentiator.h" @@ -1247,4 +1245,4 @@ int main() { TEST_DIFFERENTIATE(fn15, pairdd(), pairdd()); // CHECK-EXEC: {1.00} TEST_DIFFERENTIATE(fn16, pair_of_pairdd(), pair_of_pairdd()); // CHECK-EXEC: {2.00} TEST_DIFFERENTIATE(fn17, A(3.00), B(5.00)); // CHECK-EXEC: {3.00} -} \ No newline at end of file +} diff --git a/test/ForwardMode/VectorMode.C b/test/ForwardMode/VectorMode.C index 7a743e1db..a2af4e4ea 100644 --- a/test/ForwardMode/VectorMode.C +++ b/test/ForwardMode/VectorMode.C @@ -1,8 +1,6 @@ // RUN: %cladclang %s -I%S/../../include -oVectorMode.out 2>&1 | FileCheck %s // RUN: ./VectorMode.out | FileCheck -check-prefix=CHECK-EXEC %s -// XFAIL: asserts - //CHECK-NOT: {{.*error|warning|note:.*}} #include "clad/Differentiator/Differentiator.h" diff --git a/test/ForwardMode/VectorModeInterface.C b/test/ForwardMode/VectorModeInterface.C index 916eaf41f..805d7aadb 100644 --- a/test/ForwardMode/VectorModeInterface.C +++ b/test/ForwardMode/VectorModeInterface.C @@ -1,7 +1,5 @@ // RUN: %cladclang %s -I%S/../../include -fsyntax-only -Xclang -verify 2>&1 | FileCheck %s -// XFAIL: asserts - //CHECK-NOT: {{.*error|warning|note:.*}} #include "clad/Differentiator/Differentiator.h" diff --git a/test/Gradient/MemberFunctions.C b/test/Gradient/MemberFunctions.C index 12905f366..281b6dbcf 100644 --- a/test/Gradient/MemberFunctions.C +++ b/test/Gradient/MemberFunctions.C @@ -13,8 +13,6 @@ // RUN: %cladclang -Xclang -plugin-arg-clad -Xclang -enable-tbr -std=c++17 %s -fno-exceptions -I%S/../../include -oMemberFunctions-cpp17.out // RUN: ./MemberFunctions-cpp17.out | FileCheck -check-prefix=CHECK-EXEC %s -// XFAIL: asserts - //CHECK-NOT: {{.*error|warning|note:.*}} #include "clad/Differentiator/Differentiator.h" diff --git a/test/Misc/RunDemos.C b/test/Misc/RunDemos.C index 8f2bfe370..79635c44c 100644 --- a/test/Misc/RunDemos.C +++ b/test/Misc/RunDemos.C @@ -4,8 +4,6 @@ // RUN: %cladclang %S/../../demos/RosenbrockFunction.cpp -I%S/../../include 2>&1 // RUN: %cladclang %S/../../demos/ComputerGraphics/smallpt/SmallPT.cpp -I%S/../../include 2>&1 -// XFAIL: asserts - //-----------------------------------------------------------------------------/ // Demo: Gradient.cpp //-----------------------------------------------------------------------------/ diff --git a/test/NumericalDiff/GradientMultiArg.C b/test/NumericalDiff/GradientMultiArg.C index 74fd78a9d..48f12defd 100644 --- a/test/NumericalDiff/GradientMultiArg.C +++ b/test/NumericalDiff/GradientMultiArg.C @@ -4,7 +4,6 @@ // RUN: ./GradientMultiArg.out | FileCheck -check-prefix=CHECK-EXEC %s //CHECK-NOT: {{.*error|warning|note:.*}} -//XFAIL: asserts #include "clad/Differentiator/Differentiator.h" diff --git a/test/NumericalDiff/NumDiff.C b/test/NumericalDiff/NumDiff.C index c65ff8a39..e4819deff 100644 --- a/test/NumericalDiff/NumDiff.C +++ b/test/NumericalDiff/NumDiff.C @@ -3,7 +3,6 @@ // RUN: %cladnumdiffclang -Xclang -plugin-arg-clad -Xclang -enable-tbr %s -I%S/../../include -oNumDiff.out // RUN: ./NumDiff.out | FileCheck -check-prefix=CHECK-EXEC %s //CHECK-NOT: {{.*error|warning|note:.*}} -//XFAIL: asserts #include "clad/Differentiator/Differentiator.h" double test_1(double x){