Skip to content

Commit 6c5ef52

Browse files
committed
Fix the same tests for libc++abi
1 parent ff341af commit 6c5ef52

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

libcxxabi/test/vendor/llvm/system-install-properties.sh.cpp renamed to libcxxabi/test/vendor/llvm/system-install-properties-darwin.sh.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
// REQUIRES: darwin
910
// REQUIRES: stdlib=libc++ && !stdlib=apple-libc++
1011

1112
// This file checks various properties of the installation of libc++abi when built under
12-
// a vanilla upstream configuration.
13+
// a vanilla upstream configuration on Darwin platforms.
1314

1415
// Make sure we install the libc++abi headers in the right location.
1516
//
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
// REQUIRES: linux
10+
// REQUIRES: stdlib=libc++ && !stdlib=apple-libc++
11+
12+
// This file checks various properties of the installation of libc++abi when built under
13+
// a vanilla upstream configuration on Linux platforms.
14+
15+
// Make sure we install the libc++abi headers in the right location.
16+
//
17+
// RUN: stat "%{include}/cxxabi.h"
18+
19+
// Make sure we install libc++abi.so.1.0 in the right location.
20+
//
21+
// RUN: stat "%{lib}/libc++abi.so.1.0"
22+
23+
// Make sure we install a symlink from libc++abi.so.1 to libc++abi.so.1.0.
24+
//
25+
// RUN: stat "%{lib}/libc++abi.so.1"
26+
// RUN: readlink "%{lib}/libc++abi.so.1" | grep "libc++abi.so.1.0"
27+
28+
// Make sure we install a symlink from libc++abi.so to libc++abi.so.1.
29+
//
30+
// RUN: stat "%{lib}/libc++abi.so"
31+
// RUN: readlink "%{lib}/libc++abi.so" | grep "libc++abi.so.1"

0 commit comments

Comments
 (0)