[libcxx] r267287 - Rename a few tests that had typos in their names. No functional change. Thanks to STL for the catch

Marshall Clow via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 23 07:31:01 PDT 2016


Author: marshall
Date: Sat Apr 23 09:31:00 2016
New Revision: 267287

URL: http://llvm.org/viewvc/llvm-project?rev=267287&view=rev
Log:
Rename a few tests that had typos in their names. No functional change. Thanks to STL for the catch

Added:
    libcxx/trunk/test/std/input.output/iostreams.base/ios/basic.ios.members/narrow.pass.cpp
      - copied unchanged from r267282, libcxx/trunk/test/std/input.output/iostreams.base/ios/basic.ios.members/narow.pass.cpp
    libcxx/trunk/test/std/iterators/stream.iterators/ostream.iterator/ostream.iterator.cons.des/ostream_delim.pass.cpp
      - copied unchanged from r267282, libcxx/trunk/test/std/iterators/stream.iterators/ostream.iterator/ostream.iterator.cons.des/ostream_delem.pass.cpp
    libcxx/trunk/test/std/utilities/memory/storage.iterator/raw_storage_iterator.base.pass.cpp
      - copied unchanged from r267282, libcxx/trunk/test/std/utilities/memory/storage.iterator/raw_storag_iterator.base.pass.cpp
    libcxx/trunk/test/std/utilities/memory/storage.iterator/raw_storage_iterator.pass.cpp
      - copied unchanged from r267282, libcxx/trunk/test/std/utilities/memory/storage.iterator/raw_storag_iterator.pass.cpp
Removed:
    libcxx/trunk/test/std/input.output/iostreams.base/ios/basic.ios.members/narow.pass.cpp
    libcxx/trunk/test/std/iterators/stream.iterators/ostream.iterator/ostream.iterator.cons.des/ostream_delem.pass.cpp
    libcxx/trunk/test/std/utilities/memory/storage.iterator/raw_storag_iterator.base.pass.cpp
    libcxx/trunk/test/std/utilities/memory/storage.iterator/raw_storag_iterator.pass.cpp

Removed: libcxx/trunk/test/std/input.output/iostreams.base/ios/basic.ios.members/narow.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/input.output/iostreams.base/ios/basic.ios.members/narow.pass.cpp?rev=267286&view=auto
==============================================================================
--- libcxx/trunk/test/std/input.output/iostreams.base/ios/basic.ios.members/narow.pass.cpp (original)
+++ libcxx/trunk/test/std/input.output/iostreams.base/ios/basic.ios.members/narow.pass.cpp (removed)
@@ -1,24 +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.
-//
-//===----------------------------------------------------------------------===//
-
-// <ios>
-
-// template <class charT, class traits> class basic_ios
-
-// char narrow(char_type c, char dfault) const;
-
-#include <ios>
-#include <cassert>
-
-int main()
-{
-    const std::ios ios(0);
-    assert(ios.narrow('c', '*') == 'c');
-    assert(ios.narrow('\xFE', '*') == '*');
-}

Removed: libcxx/trunk/test/std/iterators/stream.iterators/ostream.iterator/ostream.iterator.cons.des/ostream_delem.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/iterators/stream.iterators/ostream.iterator/ostream.iterator.cons.des/ostream_delem.pass.cpp?rev=267286&view=auto
==============================================================================
--- libcxx/trunk/test/std/iterators/stream.iterators/ostream.iterator/ostream.iterator.cons.des/ostream_delem.pass.cpp (original)
+++ libcxx/trunk/test/std/iterators/stream.iterators/ostream.iterator/ostream.iterator.cons.des/ostream_delem.pass.cpp (removed)
@@ -1,32 +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.
-//
-//===----------------------------------------------------------------------===//
-
-// <iterator>
-
-// class ostream_iterator
-
-// ostream_iterator(ostream_type& s, const charT* delimiter);
-
-#include <iterator>
-#include <sstream>
-#include <cassert>
-
-int main()
-{
-    {
-        std::ostringstream outf;
-        std::ostream_iterator<int> i(outf, ", ");
-        assert(outf.good());
-    }
-    {
-        std::wostringstream outf;
-        std::ostream_iterator<double, wchar_t> i(outf, L", ");
-        assert(outf.good());
-    }
-}

Removed: libcxx/trunk/test/std/utilities/memory/storage.iterator/raw_storag_iterator.base.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/storage.iterator/raw_storag_iterator.base.pass.cpp?rev=267286&view=auto
==============================================================================
--- libcxx/trunk/test/std/utilities/memory/storage.iterator/raw_storag_iterator.base.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/memory/storage.iterator/raw_storag_iterator.base.pass.cpp (removed)
@@ -1,48 +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.
-//
-//===----------------------------------------------------------------------===//
-
-// raw_storage_iterator
-
-#include <memory>
-#include <type_traits>
-#include <cassert>
-
-int A_constructed = 0;
-
-struct A
-{
-    int data_;
-public:
-    explicit A(int i) : data_(i) {++A_constructed;}
-
-    A(const A& a) : data_(a.data_)  {++A_constructed;}
-    ~A() {--A_constructed; data_ = 0;}
-
-    bool operator==(int i) const {return data_ == i;}
-};
-
-int main()
-{
-#if __cplusplus >= 201402L
-    typedef std::aligned_storage<3*sizeof(A), std::alignment_of<A>::value>::type
-            Storage;
-    Storage buffer;
-    std::raw_storage_iterator<A*, A> it((A*)&buffer);
-    assert(A_constructed == 0);
-    assert(it.base() == (A*)&buffer);
-    for (int i = 0; i < 3; ++i)
-    {
-        *it++ = A(i+1);
-        A* ap = (A*)&buffer + i;
-        assert(*ap == i+1);
-        assert(A_constructed == i+1);
-        assert(it.base() == ap + 1);  // next place to write
-    }
-#endif
-}

Removed: libcxx/trunk/test/std/utilities/memory/storage.iterator/raw_storag_iterator.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/storage.iterator/raw_storag_iterator.pass.cpp?rev=267286&view=auto
==============================================================================
--- libcxx/trunk/test/std/utilities/memory/storage.iterator/raw_storag_iterator.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/memory/storage.iterator/raw_storag_iterator.pass.cpp (removed)
@@ -1,63 +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.
-//
-//===----------------------------------------------------------------------===//
-
-// raw_storage_iterator
-
-#include <memory>
-#include <type_traits>
-#include <cassert>
-
-#include <MoveOnly.h>
-
-int A_constructed = 0;
-
-struct A
-{
-    int data_;
-public:
-    explicit A(int i) : data_(i) {++A_constructed;}
-
-    A(const A& a) : data_(a.data_)  {++A_constructed;}
-    ~A() {--A_constructed; data_ = 0;}
-
-    bool operator==(int i) const {return data_ == i;}
-};
-
-int main()
-{
-    {
-    typedef A S;
-    typedef std::aligned_storage<3*sizeof(S), std::alignment_of<S>::value>::type
-            Storage;
-    Storage buffer;
-    std::raw_storage_iterator<S*, S> it((S*)&buffer);
-    assert(A_constructed == 0);
-    for (int i = 0; i < 3; ++i)
-    {
-        *it++ = S(i+1);
-        S* ap = (S*)&buffer + i;
-        assert(*ap == i+1);
-        assert(A_constructed == i+1);
-    }
-    }
-#if _LIBCPP_STD_VER >= 14
-    {
-    typedef MoveOnly S;
-    typedef std::aligned_storage<3*sizeof(S), std::alignment_of<S>::value>::type
-            Storage;
-    Storage buffer;
-    std::raw_storage_iterator<S*, S> it((S*)&buffer);
-    S m{1};
-    *it++ = std::move(m);
-    assert(m.get() == 0); // moved from
-    S *ap = (S*) &buffer;
-    assert(ap->get() == 1); // original value
-    }
-#endif
-}




More information about the cfe-commits mailing list