tests: remove static data from presentation
authorPekka Paalanen <pekka.paalanen@collabora.com>
Wed, 13 Nov 2019 13:50:51 +0000 (15:50 +0200)
committerDaniel Stone <daniel@fooishbar.org>
Thu, 21 Nov 2019 16:24:01 +0000 (16:24 +0000)
commitf38d4458f7bb0727332448eb4ed86b17a4725a35
tree3f7d0438d66a334e3454f5a234cb75aad2e474df
parentf8086fb839d8cfc4abe3dd0502575598bbe6aaee
tests: remove static data from presentation

While get_presentation() will only ever be called once (making the caching of
the return value moot), it is good to stop using the static variable as it
would cause surprising problems if anyone adds more tests here and runs it
under the new test harness.

It was leaked before and continues to be so.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
tests/presentation-test.c