File: CIFailure.cpp

package info (click to toggle)
fenics-dolfinx 1%3A0.10.0.post5-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,952 kB
  • sloc: cpp: 36,535; python: 25,391; makefile: 223; sh: 174; xml: 55
file content (24 lines) | stat: -rw-r--r-- 583 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2019 Francesco Ballarin and Igor A. Baratta
//
// This file is part of DOLFINx (https://www.fenicsproject.org)
//
// SPDX-License-Identifier:    LGPL-3.0-or-later
//
// Unit tests for Distributed Meshes

#include <catch2/catch_test_macros.hpp>
#include <dolfinx.h>

using namespace dolfinx;

namespace
{
void test_ci_failure()
{
  auto mpi_comm = dolfinx::MPI::Comm(MPI_COMM_WORLD);
  int mpi_rank = dolfinx::MPI::rank(mpi_comm.comm());
  REQUIRE_FALSE(mpi_rank == -1);
}
} // namespace

TEST_CASE("CI failure", "[ci_failure]") { CHECK_NOTHROW(test_ci_failure()); }