tests: remove static data from viewporter
authorPekka Paalanen <pekka.paalanen@collabora.com>
Tue, 5 Nov 2019 13:40:25 +0000 (15:40 +0200)
committerDaniel Stone <daniel@fooishbar.org>
Thu, 21 Nov 2019 16:24:01 +0000 (16:24 +0000)
commit4058828b54c6cf46a3e6d1bf90efc98c5ba8d7fa
treec6fbb541566e8547ba5b4185c4c6a23524bd6e82
parent21627136b233a9163c944f374341374cf852ffcd
tests: remove static data from viewporter

This caching is actually never hit. I tested by making the early return abort()
instead and all works just fine.

Remove the caching. The static variable will cause problems when we stop
fork()'ing for each test case.

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