summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-10-16 22:43:10 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-10-16 22:43:10 +0000
commitd398ac561fcb589f4bb5a3b563d182dab9f0d9e2 (patch)
tree54b38558e5b4db6ad26b2f281c9e3072ee92957e /llvm
parent1b6678767d9cfe7a33db98e586b5559394af3884 (diff)
downloadbcm5719-llvm-d398ac561fcb589f4bb5a3b563d182dab9f0d9e2.tar.gz
bcm5719-llvm-d398ac561fcb589f4bb5a3b563d182dab9f0d9e2.zip
Invert arguments to ASSERT_EQ to match gtest diagnostic printing
GTest assumes the left hand side of the assert is the expectation and the right hand side is the test result. It's easier to read gtest failures when these things are ordered correctly. llvm-svn: 192854
Diffstat (limited to 'llvm')
-rw-r--r--llvm/unittests/CodeGen/DIEHashTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/CodeGen/DIEHashTest.cpp b/llvm/unittests/CodeGen/DIEHashTest.cpp
index 86358d5d31a..91b03224f0a 100644
--- a/llvm/unittests/CodeGen/DIEHashTest.cpp
+++ b/llvm/unittests/CodeGen/DIEHashTest.cpp
@@ -23,6 +23,6 @@ TEST(DIEHashData1Test, DIEHash) {
DIEInteger Size(4);
Die.addValue(dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, &Size);
uint64_t MD5Res = Hash.computeTypeSignature(&Die);
- ASSERT_EQ(MD5Res, 0x4F68EF1039F8D2BULL);
+ ASSERT_EQ(0x4F68EF1039F8D2BULL, MD5Res);
}
}
OpenPOWER on IntegriCloud