diff options
author | David Robillard <d@drobilla.net> | 2013-01-12 18:51:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-12 18:51:29 +0000 |
commit | 1630b3fd62c57e01468a03a9d4dde397f903ef37 (patch) | |
tree | 12f48c2d3377ba7537f3d359421af761eb58b33d /tests | |
parent | 4e3f4a2a0fdca75352265ba8490fbe9f397e264a (diff) | |
download | ingen-1630b3fd62c57e01468a03a9d4dde397f903ef37.tar.gz ingen-1630b3fd62c57e01468a03a9d4dde397f903ef37.tar.bz2 ingen-1630b3fd62c57e01468a03a9d4dde397f903ef37.zip |
Lint.
Fix test suite compilation.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4937 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ingen_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ingen_test.cpp b/tests/ingen_test.cpp index ade41aa7..8608b447 100644 --- a/tests/ingen_test.cpp +++ b/tests/ingen_test.cpp @@ -66,7 +66,7 @@ class TestClient : public AtomSink { class TestClient : public Interface { public: - TestClient(Log& log) : _log(log) {} + explicit TestClient(Log& log) : _log(log) {} ~TestClient() {} Raul::URI uri() const { return Raul::URI("ingen:testClient"); } @@ -77,7 +77,7 @@ public: void put(const Raul::URI& uri, const Resource::Properties& properties, - Resource::Graph ctx = Resource::DEFAULT) {} + Resource::Graph ctx = Resource::Graph::DEFAULT) {} void delta(const Raul::URI& uri, const Resource::Properties& remove, @@ -106,7 +106,7 @@ public: void get(const Raul::URI& uri) {} void response(int32_t id, Status status, const std::string& subject) { - if (status) { + if (status != Status::SUCCESS) { _log.error(Raul::fmt("error on message %1%: %2% (%3%)\n") % id % ingen_status_string(status) % subject); exit(EXIT_FAILURE); |