[libcxx] r349071 - [libcxx] Fix pop_back() tests to make sure they don't always just pass
Louis Dionne
ldionne at apple.com
Thu Dec 13 10:53:17 PST 2018
Author: ldionne
Date: Thu Dec 13 10:53:17 2018
New Revision: 349071
URL: http://llvm.org/viewvc/llvm-project?rev=349071&view=rev
Log:
[libcxx] Fix pop_back() tests to make sure they don't always just pass
Modified:
libcxx/trunk/test/libcxx/containers/sequences/deque/pop_back_empty.pass.cpp
libcxx/trunk/test/libcxx/containers/sequences/vector/pop_back_empty.pass.cpp
Modified: libcxx/trunk/test/libcxx/containers/sequences/deque/pop_back_empty.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/containers/sequences/deque/pop_back_empty.pass.cpp?rev=349071&r1=349070&r2=349071&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/containers/sequences/deque/pop_back_empty.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/containers/sequences/deque/pop_back_empty.pass.cpp Thu Dec 13 10:53:17 2018
@@ -22,4 +22,5 @@ int main() {
q.push_back(0);
q.pop_back();
q.pop_back();
+ std::exit(1);
}
Modified: libcxx/trunk/test/libcxx/containers/sequences/vector/pop_back_empty.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/containers/sequences/vector/pop_back_empty.pass.cpp?rev=349071&r1=349070&r2=349071&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/containers/sequences/vector/pop_back_empty.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/containers/sequences/vector/pop_back_empty.pass.cpp Thu Dec 13 10:53:17 2018
@@ -22,4 +22,5 @@ int main() {
v.push_back(0);
v.pop_back();
v.pop_back();
+ std::exit(1);
}
More information about the libcxx-commits
mailing list