Add negative test cases wherever possible 52/230352/30
authorTomasz Swierczek <t.swierczek@samsung.com>
Thu, 9 Apr 2020 12:51:20 +0000 (14:51 +0200)
committerTomasz Swierczek <t.swierczek@samsung.com>
Wed, 24 Jun 2020 11:17:31 +0000 (13:17 +0200)
commit17f12e1c5eb477da5a5fe83fff9a3921ba3b3c16
tree897d1f24ff15e6ee57015b347939e9ec32979677
parente75fd193fe22bc55a2bcfcc05ccd40d97afb5cf8
Add negative test cases wherever possible

Yes, repeating same test code body many times
to test each unprintable character below ' '
is not elegant, but it gets us to > 50%
of negative test cases, with room for improvement.

Yes, this seems ugly, but does the job.

Yes, I will have to wash my hands after committing this.

So here I am, with this patch, before you,
Dear Reviewer, so you don't have to make it.

Titan! to whose immortal eyes
         The sufferings of mortality,
         Seen in their sad reality,
Were not as things that gods despise;

(...)

Lord Byron, Prometheus

Change-Id: I48d7466ef6ca4143bf759d9b70ce60bdd347935c
test/test_smack-labels.cpp
test/test_smack-rules.cpp