Skip to content

Commit

Permalink
Enable tests with failing asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailMihov committed Apr 6, 2024
1 parent 2ff9fc1 commit 42910df
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 18 deletions.
1 change: 0 additions & 1 deletion test/Arrays/ArrayInputsReverseMode.C
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 0 additions & 2 deletions test/Arrays/ArrayInputsVectorForwardMode.C
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
1 change: 0 additions & 1 deletion test/FirstDerivative/Overloads.C
Original file line number Diff line number Diff line change
@@ -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.*}}

Expand Down
1 change: 0 additions & 1 deletion test/FirstDerivative/VirtualMethodsCall.C
Original file line number Diff line number Diff line change
@@ -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:.*}}
Expand Down
4 changes: 1 addition & 3 deletions test/ForwardMode/UserDefinedTypes.C
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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}
}
}
2 changes: 0 additions & 2 deletions test/ForwardMode/VectorMode.C
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 0 additions & 2 deletions test/ForwardMode/VectorModeInterface.C
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 0 additions & 2 deletions test/Gradient/MemberFunctions.C
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 0 additions & 2 deletions test/Misc/RunDemos.C
Original file line number Diff line number Diff line change
Expand Up @@ -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
//-----------------------------------------------------------------------------/
Expand Down
1 change: 0 additions & 1 deletion test/NumericalDiff/GradientMultiArg.C
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 0 additions & 1 deletion test/NumericalDiff/NumDiff.C
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 42910df

Please sign in to comment.