diff options
author | Eric Fiselier <eric@efcs.ca> | 2014-12-20 01:40:03 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2014-12-20 01:40:03 +0000 |
commit | 5a83710e371fe68a06e6e3876c6a2c8b820a8976 (patch) | |
tree | afde4c82ad6704681781c5cd49baa3fbd05c85db /libcxx/test/diagnostics/syserr/syserr.syserr | |
parent | f11e8eab527fba316c64112f6e05de1a79693a3e (diff) | |
download | bcm5719-llvm-5a83710e371fe68a06e6e3876c6a2c8b820a8976.tar.gz bcm5719-llvm-5a83710e371fe68a06e6e3876c6a2c8b820a8976.zip |
Move test into test/std subdirectory.
llvm-svn: 224658
Diffstat (limited to 'libcxx/test/diagnostics/syserr/syserr.syserr')
8 files changed, 0 insertions, 204 deletions
diff --git a/libcxx/test/diagnostics/syserr/syserr.syserr/nothing_to_do.pass.cpp b/libcxx/test/diagnostics/syserr/syserr.syserr/nothing_to_do.pass.cpp deleted file mode 100644 index b58f5c55b64..00000000000 --- a/libcxx/test/diagnostics/syserr/syserr.syserr/nothing_to_do.pass.cpp +++ /dev/null @@ -1,12 +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. -// -//===----------------------------------------------------------------------===// - -int main() -{ -} diff --git a/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_error_code.pass.cpp b/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_error_code.pass.cpp deleted file mode 100644 index c059ba3253c..00000000000 --- a/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_error_code.pass.cpp +++ /dev/null @@ -1,29 +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. -// -//===----------------------------------------------------------------------===// - -// <system_error> - -// class system_error - -// system_error(error_code ec); - -// Test is slightly non-portable - -#include <system_error> -#include <string> -#include <cassert> - -int main() -{ - std::system_error se(static_cast<int>(std::errc::not_a_directory), - std::generic_category(), "some text"); - assert(se.code() == std::make_error_code(std::errc::not_a_directory)); - std::string what_message(se.what()); - assert(what_message.find("Not a directory") != std::string::npos); -} diff --git a/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_error_code_const_char_pointer.pass.cpp b/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_error_code_const_char_pointer.pass.cpp deleted file mode 100644 index cd8e3fefbf9..00000000000 --- a/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_error_code_const_char_pointer.pass.cpp +++ /dev/null @@ -1,30 +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. -// -//===----------------------------------------------------------------------===// - -// <system_error> - -// class system_error - -// system_error(error_code ec, const char* what_arg); - -// Test is slightly non-portable - -#include <system_error> -#include <string> -#include <cassert> - -int main() -{ - std::string what_arg("test message"); - std::system_error se(make_error_code(std::errc::not_a_directory), what_arg.c_str()); - assert(se.code() == std::make_error_code(std::errc::not_a_directory)); - std::string what_message(se.what()); - assert(what_message.find(what_arg) != std::string::npos); - assert(what_message.find("Not a directory") != std::string::npos); -} diff --git a/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_error_code_string.pass.cpp b/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_error_code_string.pass.cpp deleted file mode 100644 index b891a6d973d..00000000000 --- a/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_error_code_string.pass.cpp +++ /dev/null @@ -1,30 +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. -// -//===----------------------------------------------------------------------===// - -// <system_error> - -// class system_error - -// system_error(error_code ec, const string& what_arg); - -// Test is slightly non-portable - -#include <system_error> -#include <string> -#include <cassert> - -int main() -{ - std::string what_arg("test message"); - std::system_error se(make_error_code(std::errc::not_a_directory), what_arg); - assert(se.code() == std::make_error_code(std::errc::not_a_directory)); - std::string what_message(se.what()); - assert(what_message.find(what_arg) != std::string::npos); - assert(what_message.find("Not a directory") != std::string::npos); -} diff --git a/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_int_error_category.pass.cpp b/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_int_error_category.pass.cpp deleted file mode 100644 index acf6387fc24..00000000000 --- a/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_int_error_category.pass.cpp +++ /dev/null @@ -1,29 +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. -// -//===----------------------------------------------------------------------===// - -// <system_error> - -// class system_error - -// system_error(int ev, const error_category& ecat); - -// Test is slightly non-portable - -#include <system_error> -#include <string> -#include <cassert> - -int main() -{ - std::system_error se(static_cast<int>(std::errc::not_a_directory), - std::generic_category()); - assert(se.code() == std::make_error_code(std::errc::not_a_directory)); - std::string what_message(se.what()); - assert(what_message.find("Not a directory") != std::string::npos); -} diff --git a/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_int_error_category_const_char_pointer.pass.cpp b/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_int_error_category_const_char_pointer.pass.cpp deleted file mode 100644 index 4f697016ce1..00000000000 --- a/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_int_error_category_const_char_pointer.pass.cpp +++ /dev/null @@ -1,31 +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. -// -//===----------------------------------------------------------------------===// - -// <system_error> - -// class system_error - -// system_error(int ev, const error_category& ecat, const char* what_arg); - -// Test is slightly non-portable - -#include <system_error> -#include <string> -#include <cassert> - -int main() -{ - std::string what_arg("test message"); - std::system_error se(static_cast<int>(std::errc::not_a_directory), - std::generic_category(), what_arg.c_str()); - assert(se.code() == std::make_error_code(std::errc::not_a_directory)); - std::string what_message(se.what()); - assert(what_message.find(what_arg) != std::string::npos); - assert(what_message.find("Not a directory") != std::string::npos); -} diff --git a/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_int_error_category_string.pass.cpp b/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_int_error_category_string.pass.cpp deleted file mode 100644 index 87814b19079..00000000000 --- a/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.members/ctor_int_error_category_string.pass.cpp +++ /dev/null @@ -1,31 +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. -// -//===----------------------------------------------------------------------===// - -// <system_error> - -// class system_error - -// system_error(int ev, const error_category& ecat, const string& what_arg); - -// Test is slightly non-portable - -#include <system_error> -#include <string> -#include <cassert> - -int main() -{ - std::string what_arg("test message"); - std::system_error se(static_cast<int>(std::errc::not_a_directory), - std::generic_category(), what_arg); - assert(se.code() == std::make_error_code(std::errc::not_a_directory)); - std::string what_message(se.what()); - assert(what_message.find(what_arg) != std::string::npos); - assert(what_message.find("Not a directory") != std::string::npos); -} diff --git a/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.overview/nothing_to_do.pass.cpp b/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.overview/nothing_to_do.pass.cpp deleted file mode 100644 index b58f5c55b64..00000000000 --- a/libcxx/test/diagnostics/syserr/syserr.syserr/syserr.syserr.overview/nothing_to_do.pass.cpp +++ /dev/null @@ -1,12 +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. -// -//===----------------------------------------------------------------------===// - -int main() -{ -} |