From 873f8d2ebeb60908cbc5c54d1c8045e0a5552b35 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Fri, 12 May 2017 01:49:32 +0000 Subject: Move tests for libc++ configurations into libcxx/ test subdirectory llvm-svn: 302864 --- .../no.global.filesystem.namespace/fopen.fail.cpp | 17 +++++++++++++++++ .../no.global.filesystem.namespace/rename.fail.cpp | 17 +++++++++++++++++ .../no.global.filesystem.namespace/fopen.fail.cpp | 15 --------------- .../no.global.filesystem.namespace/lit.local.cfg | 2 -- .../no.global.filesystem.namespace/rename.fail.cpp | 15 --------------- 5 files changed, 34 insertions(+), 32 deletions(-) create mode 100644 libcxx/test/libcxx/input.output/file.streams/c.files/no.global.filesystem.namespace/fopen.fail.cpp create mode 100644 libcxx/test/libcxx/input.output/file.streams/c.files/no.global.filesystem.namespace/rename.fail.cpp delete mode 100644 libcxx/test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/fopen.fail.cpp delete mode 100644 libcxx/test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/lit.local.cfg delete mode 100644 libcxx/test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/rename.fail.cpp (limited to 'libcxx/test') diff --git a/libcxx/test/libcxx/input.output/file.streams/c.files/no.global.filesystem.namespace/fopen.fail.cpp b/libcxx/test/libcxx/input.output/file.streams/c.files/no.global.filesystem.namespace/fopen.fail.cpp new file mode 100644 index 00000000000..31a37229bf0 --- /dev/null +++ b/libcxx/test/libcxx/input.output/file.streams/c.files/no.global.filesystem.namespace/fopen.fail.cpp @@ -0,0 +1,17 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// REQUIRES: libcpp-has-no-global-filesystem-namespace + +#include + +int main() { + // fopen is not available on systems without a global filesystem namespace. + std::fopen("", ""); +} diff --git a/libcxx/test/libcxx/input.output/file.streams/c.files/no.global.filesystem.namespace/rename.fail.cpp b/libcxx/test/libcxx/input.output/file.streams/c.files/no.global.filesystem.namespace/rename.fail.cpp new file mode 100644 index 00000000000..248ab4d6721 --- /dev/null +++ b/libcxx/test/libcxx/input.output/file.streams/c.files/no.global.filesystem.namespace/rename.fail.cpp @@ -0,0 +1,17 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// REQUIRES: libcpp-has-no-global-filesystem-namespace + +#include + +int main() { + // rename is not available on systems without a global filesystem namespace. + std::rename("", ""); +} diff --git a/libcxx/test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/fopen.fail.cpp b/libcxx/test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/fopen.fail.cpp deleted file mode 100644 index 4d83296f086..00000000000 --- a/libcxx/test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/fopen.fail.cpp +++ /dev/null @@ -1,15 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#include - -int main() { - // fopen is not available on systems without a global filesystem namespace. - std::fopen("", ""); -} diff --git a/libcxx/test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/lit.local.cfg b/libcxx/test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/lit.local.cfg deleted file mode 100644 index 4ea67093559..00000000000 --- a/libcxx/test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/lit.local.cfg +++ /dev/null @@ -1,2 +0,0 @@ -if 'libcpp-has-no-global-filesystem-namespace' not in config.available_features: - config.unsupported = True diff --git a/libcxx/test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/rename.fail.cpp b/libcxx/test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/rename.fail.cpp deleted file mode 100644 index deca9bf5b55..00000000000 --- a/libcxx/test/std/input.output/file.streams/c.files/no.global.filesystem.namespace/rename.fail.cpp +++ /dev/null @@ -1,15 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#include - -int main() { - // rename is not available on systems without a global filesystem namespace. - std::rename("", ""); -} -- cgit v1.2.3