Roboticists at the Rensselaer Polytechnic Institute in New York have built a trio of robots that were put through the classic 'wise men puzzle' test of self-awareness - and one of them passed.
Via GoogleMyFacePlusSpaceBookTwitter, “Uh-oh, a robot just passed the self-awareness test | TechRadar [1]”
I wouldn't worry too much—all this robot did was run some code to solve a logic problem [2], probably using code written in Prolog [3] or something similar.
Nothing to see here … move along … the computer is your friend [4] …
[1] http://www.techradar.com/news/world-of-tech/uh-oh-this
[2] http://forums.philosophyforums.com/threads/a-logical-
[3] https://en.wikipedia.org/wiki/Prolog
[4] http://tvtropes.org/pmwiki/pmwiki.php/Main/TheComputerIsYourFriend