summaryrefslogtreecommitdiffstats
path: root/libcxx/test/thread/thread.threads
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2014-02-04 19:51:48 +0000
committerHoward Hinnant <hhinnant@apple.com>2014-02-04 19:51:48 +0000
commit7fe6441cc3500dfa83dfebcb042aeab4871846ea (patch)
tree01eea59f80a2dcdcef7ab6da94cf0531ed24cfb6 /libcxx/test/thread/thread.threads
parent3303a339b1a6ce57211d98b7422fcfa18c37aebd (diff)
downloadbcm5719-llvm-7fe6441cc3500dfa83dfebcb042aeab4871846ea.tar.gz
bcm5719-llvm-7fe6441cc3500dfa83dfebcb042aeab4871846ea.zip
Albert Wong: Fix thread.thread.id/lt.pass.cpp to not assume thread::id() produces a minimal value. This enables this test to pass on andriod arm.
llvm-svn: 200793
Diffstat (limited to 'libcxx/test/thread/thread.threads')
-rw-r--r--libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.id/lt.pass.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.id/lt.pass.cpp b/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.id/lt.pass.cpp
index 6a41f8a6676..099781fb72f 100644
--- a/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.id/lt.pass.cpp
+++ b/libcxx/test/thread/thread.threads/thread.thread.class/thread.thread.id/lt.pass.cpp
@@ -28,8 +28,14 @@ int main()
assert( (id0 <= id1));
assert(!(id0 > id1));
assert( (id0 >= id1));
- assert( (id0 < id2));
- assert( (id0 <= id2));
- assert(!(id0 > id2));
- assert(!(id0 >= id2));
+ assert(!(id0 == id2));
+ if (id0 < id2) {
+ assert( (id0 <= id2));
+ assert(!(id0 > id2));
+ assert(!(id0 >= id2));
+ } else {
+ assert(!(id0 <= id2));
+ assert( (id0 > id2));
+ assert( (id0 >= id2));
+ }
}
OpenPOWER on IntegriCloud