Simplify uses of spvBinaryDestroy in tests
authorDavid Neto <dneto@google.com>
Tue, 8 Sep 2015 19:29:22 +0000 (15:29 -0400)
committerDavid Neto <dneto@google.com>
Mon, 26 Oct 2015 16:54:39 +0000 (12:54 -0400)
commitcac38f92dd8dbba0d6ac8886aa5d9f9c9e583386
tree9f9c9c6614d2bc6a67635cfd9b69caf233a37c47
parentac6f71b2de4872fa223293eb8992f58fd6c7e72b
Simplify uses of spvBinaryDestroy in tests

Always try to destroy the binary during common methods
of test fixtures.  This is safe if no other code in the test
attempted to destroy the binary.

Take advantage of the fact spvBinaryDestroy is a no-op on a nullptr,
by eliminating the null pointer check in the caller.
test/Comment.cpp
test/ImmediateInt.cpp
test/NamedId.cpp
test/TestFixture.h
test/TextToBinary.cpp