[lld] r208123 - Add a test for notifyProgress().
Rui Ueyama
ruiu at google.com
Tue May 6 12:26:21 PDT 2014
Author: ruiu
Date: Tue May 6 14:26:21 2014
New Revision: 208123
URL: http://llvm.org/viewvc/llvm-project?rev=208123&view=rev
Log:
Add a test for notifyProgress().
Modified:
lld/trunk/unittests/DriverTests/InputGraphTest.cpp
Modified: lld/trunk/unittests/DriverTests/InputGraphTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/unittests/DriverTests/InputGraphTest.cpp?rev=208123&r1=208122&r2=208123&view=diff
==============================================================================
--- lld/trunk/unittests/DriverTests/InputGraphTest.cpp (original)
+++ lld/trunk/unittests/DriverTests/InputGraphTest.cpp Tue May 6 14:26:21 2014
@@ -144,11 +144,19 @@ TEST_F(InputGraphTest, GroupIteration) {
EXPECT_EQ("file1", getNext());
EXPECT_EQ("file2", getNext());
+
EXPECT_EQ("file3", getNext());
EXPECT_EQ("file4", getNext());
EXPECT_EQ("file5", getNext());
EXPECT_EQ("file6", getNext());
_graph->notifyProgress();
+
+ EXPECT_EQ("file3", getNext());
+ EXPECT_EQ("file4", getNext());
+ _graph->notifyProgress();
+ EXPECT_EQ("file5", getNext());
+ EXPECT_EQ("file6", getNext());
+
EXPECT_EQ("file3", getNext());
EXPECT_EQ("file4", getNext());
EXPECT_EQ("file5", getNext());
More information about the llvm-commits
mailing list