[libcxx] r271741 - [libcxx] Fix c++98 test failures.

Asiri Rathnayake via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 3 14:40:04 PDT 2016


Author: asiri
Date: Fri Jun  3 16:40:03 2016
New Revision: 271741

URL: http://llvm.org/viewvc/llvm-project?rev=271741&view=rev
Log:
[libcxx] Fix c++98 test failures.

Adds XFAIL/UNSUPPORTED lit tags as appropriate. Gets a clean test run
for -std=c++98 on Fedora 20.

NFC.

Modified:
    libcxx/trunk/test/std/algorithms/alg.sorting/alg.clamp/clamp.comp.pass.cpp
    libcxx/trunk/test/std/algorithms/alg.sorting/alg.clamp/clamp.pass.cpp
    libcxx/trunk/test/std/containers/associative/map/map.modifiers/insert_or_assign.pass.cpp
    libcxx/trunk/test/std/containers/associative/map/map.modifiers/try.emplace.pass.cpp
    libcxx/trunk/test/std/containers/associative/map/map.ops/count0.pass.cpp
    libcxx/trunk/test/std/containers/associative/map/map.ops/equal_range0.pass.cpp
    libcxx/trunk/test/std/containers/associative/map/map.ops/find0.pass.cpp
    libcxx/trunk/test/std/containers/associative/map/map.ops/lower_bound0.pass.cpp
    libcxx/trunk/test/std/containers/associative/map/map.ops/upper_bound0.pass.cpp
    libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/count0.pass.cpp
    libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/equal_range0.pass.cpp
    libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/find0.pass.cpp
    libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/lower_bound0.pass.cpp
    libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/upper_bound0.pass.cpp
    libcxx/trunk/test/std/utilities/time/time.duration/time.duration.alg/abs.pass.cpp
    libcxx/trunk/test/std/utilities/time/time.duration/time.duration.cast/ceil.pass.cpp
    libcxx/trunk/test/std/utilities/time/time.duration/time.duration.cast/floor.pass.cpp
    libcxx/trunk/test/std/utilities/time/time.duration/time.duration.cast/round.pass.cpp
    libcxx/trunk/test/std/utilities/time/time.point/time.point.cast/ceil.pass.cpp
    libcxx/trunk/test/std/utilities/time/time.point/time.point.cast/floor.pass.cpp
    libcxx/trunk/test/std/utilities/time/time.point/time.point.cast/round.pass.cpp
    libcxx/trunk/test/std/utilities/utility/synopsis.pass.cpp

Modified: libcxx/trunk/test/std/algorithms/alg.sorting/alg.clamp/clamp.comp.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/algorithms/alg.sorting/alg.clamp/clamp.comp.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/algorithms/alg.sorting/alg.clamp/clamp.comp.pass.cpp (original)
+++ libcxx/trunk/test/std/algorithms/alg.sorting/alg.clamp/clamp.comp.pass.cpp Fri Jun  3 16:40:03 2016
@@ -8,7 +8,7 @@
 //===----------------------------------------------------------------------===//
 
 // <algorithm>
-// XFAIL: c++03, c++11, c++14
+// XFAIL: c++98, c++03, c++11, c++14
 
 // template<class T, class Compare>
 //   const T&

Modified: libcxx/trunk/test/std/algorithms/alg.sorting/alg.clamp/clamp.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/algorithms/alg.sorting/alg.clamp/clamp.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/algorithms/alg.sorting/alg.clamp/clamp.pass.cpp (original)
+++ libcxx/trunk/test/std/algorithms/alg.sorting/alg.clamp/clamp.pass.cpp Fri Jun  3 16:40:03 2016
@@ -8,7 +8,7 @@
 //===----------------------------------------------------------------------===//
 
 // <algorithm>
-// XFAIL: c++03, c++11, c++14
+// XFAIL: c++98, c++03, c++11, c++14
 
 // template<class T>
 //   const T&

Modified: libcxx/trunk/test/std/containers/associative/map/map.modifiers/insert_or_assign.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/map/map.modifiers/insert_or_assign.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/associative/map/map.modifiers/insert_or_assign.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/associative/map/map.modifiers/insert_or_assign.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// UNSUPPORTED: c++03, c++11, c++14
+// UNSUPPORTED: c++98, c++03, c++11, c++14
 
 // <map>
 
@@ -182,4 +182,4 @@ int main()
         assert(r->first.get()  == 3);  // key
         assert(r->second.get() == 5);  // value
     }
-}
\ No newline at end of file
+}

Modified: libcxx/trunk/test/std/containers/associative/map/map.modifiers/try.emplace.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/map/map.modifiers/try.emplace.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/associative/map/map.modifiers/try.emplace.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/associative/map/map.modifiers/try.emplace.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// UNSUPPORTED: c++03, c++11, c++14
+// UNSUPPORTED: c++98, c++03, c++11, c++14
 
 // <map>
 

Modified: libcxx/trunk/test/std/containers/associative/map/map.ops/count0.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/map/map.ops/count0.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/associative/map/map.ops/count0.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/associative/map/map.ops/count0.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// XFAIL: c++03, c++11
+// XFAIL: c++98, c++03, c++11
 
 // <map>
 

Modified: libcxx/trunk/test/std/containers/associative/map/map.ops/equal_range0.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/map/map.ops/equal_range0.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/associative/map/map.ops/equal_range0.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/associative/map/map.ops/equal_range0.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// XFAIL: c++03, c++11
+// XFAIL: c++98, c++03, c++11
 
 // <map>
 

Modified: libcxx/trunk/test/std/containers/associative/map/map.ops/find0.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/map/map.ops/find0.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/associative/map/map.ops/find0.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/associative/map/map.ops/find0.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// XFAIL: c++03, c++11
+// XFAIL: c++98, c++03, c++11
 
 // <map>
 

Modified: libcxx/trunk/test/std/containers/associative/map/map.ops/lower_bound0.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/map/map.ops/lower_bound0.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/associative/map/map.ops/lower_bound0.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/associative/map/map.ops/lower_bound0.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// XFAIL: c++03, c++11
+// XFAIL: c++98, c++03, c++11
 
 // <map>
 

Modified: libcxx/trunk/test/std/containers/associative/map/map.ops/upper_bound0.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/map/map.ops/upper_bound0.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/associative/map/map.ops/upper_bound0.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/associative/map/map.ops/upper_bound0.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// XFAIL: c++03, c++11
+// XFAIL: c++98, c++03, c++11
 
 // <map>
 

Modified: libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/count0.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/count0.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/count0.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/count0.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// XFAIL: c++03, c++11
+// XFAIL: c++98, c++03, c++11
 
 // <map>
 

Modified: libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/equal_range0.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/equal_range0.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/equal_range0.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/equal_range0.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// XFAIL: c++03, c++11
+// XFAIL: c++98, c++03, c++11
 
 // <map>
 

Modified: libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/find0.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/find0.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/find0.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/find0.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// XFAIL: c++03, c++11
+// XFAIL: c++98, c++03, c++11
 
 // <map>
 

Modified: libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/lower_bound0.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/lower_bound0.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/lower_bound0.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/lower_bound0.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// XFAIL: c++03, c++11
+// XFAIL: c++98, c++03, c++11
 
 // <map>
 

Modified: libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/upper_bound0.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/upper_bound0.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/upper_bound0.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/associative/multimap/multimap.ops/upper_bound0.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// XFAIL: c++03, c++11
+// XFAIL: c++98, c++03, c++11
 
 // <map>
 

Modified: libcxx/trunk/test/std/utilities/time/time.duration/time.duration.alg/abs.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.duration/time.duration.alg/abs.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.duration/time.duration.alg/abs.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.duration/time.duration.alg/abs.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-// UNSUPPORTED: c++03, c++11, c++14
+// UNSUPPORTED: c++98, c++03, c++11, c++14
 
 // <chrono>
 

Modified: libcxx/trunk/test/std/utilities/time/time.duration/time.duration.cast/ceil.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.duration/time.duration.cast/ceil.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.duration/time.duration.cast/ceil.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.duration/time.duration.cast/ceil.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-// UNSUPPORTED: c++03, c++11, c++14
+// UNSUPPORTED: c++98, c++03, c++11, c++14
 
 // <chrono>
 

Modified: libcxx/trunk/test/std/utilities/time/time.duration/time.duration.cast/floor.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.duration/time.duration.cast/floor.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.duration/time.duration.cast/floor.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.duration/time.duration.cast/floor.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-// UNSUPPORTED: c++03, c++11, c++14
+// UNSUPPORTED: c++98, c++03, c++11, c++14
 // <chrono>
 
 // floor

Modified: libcxx/trunk/test/std/utilities/time/time.duration/time.duration.cast/round.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.duration/time.duration.cast/round.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.duration/time.duration.cast/round.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.duration/time.duration.cast/round.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-// UNSUPPORTED: c++03, c++11, c++14
+// UNSUPPORTED: c++98, c++03, c++11, c++14
 // <chrono>
 
 // round

Modified: libcxx/trunk/test/std/utilities/time/time.point/time.point.cast/ceil.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.point/time.point.cast/ceil.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.point/time.point.cast/ceil.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.point/time.point.cast/ceil.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-// UNSUPPORTED: c++03, c++11, c++14
+// UNSUPPORTED: c++98, c++03, c++11, c++14
 // <chrono>
 
 // ceil

Modified: libcxx/trunk/test/std/utilities/time/time.point/time.point.cast/floor.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.point/time.point.cast/floor.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.point/time.point.cast/floor.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.point/time.point.cast/floor.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-// UNSUPPORTED: c++03, c++11, c++14
+// UNSUPPORTED: c++98, c++03, c++11, c++14
 // <chrono>
 
 // floor

Modified: libcxx/trunk/test/std/utilities/time/time.point/time.point.cast/round.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.point/time.point.cast/round.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.point/time.point.cast/round.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.point/time.point.cast/round.pass.cpp Fri Jun  3 16:40:03 2016
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-// UNSUPPORTED: c++03, c++11, c++14
+// UNSUPPORTED: c++98, c++03, c++11, c++14
 // <chrono>
 
 // round

Modified: libcxx/trunk/test/std/utilities/utility/synopsis.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/utility/synopsis.pass.cpp?rev=271741&r1=271740&r2=271741&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/utility/synopsis.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/utility/synopsis.pass.cpp Fri Jun  3 16:40:03 2016
@@ -8,7 +8,7 @@
 //===----------------------------------------------------------------------===//
 
 // <utility>
-// XFAIL: c++03
+// XFAIL: c++98, c++03
 
 // #include <initializer_list>
 




More information about the cfe-commits mailing list